From 832d95efb5d845bab2ff956af3ad1fa729222cba Mon Sep 17 00:00:00 2001 From: Jahir <124062934+juddin927@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:38:13 +0100 Subject: [PATCH] Update lease_spec.rb --- dhcp-service/spec/lease_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dhcp-service/spec/lease_spec.rb b/dhcp-service/spec/lease_spec.rb index 22ae976..ca01717 100644 --- a/dhcp-service/spec/lease_spec.rb +++ b/dhcp-service/spec/lease_spec.rb @@ -11,6 +11,7 @@ def wait_for_leases(expected_count, retries = 5, delay = 2) return if db_client[:lease4].count == expected_count sleep delay end + #raise "Expected #{expected_count} leases, got #{db_client[:lease4].count}" end def wait_for_packet_capture(delay = 5) @@ -35,7 +36,6 @@ def wait_for_packet_capture(delay = 5) -4 \ -W 20000000 \ 172.1.0.10` - wait_for_leases(10) wait_for_packet_capture() expect(db_client[:lease4].count).to eq(10) @@ -55,7 +55,6 @@ def wait_for_packet_capture(delay = 5) -o 77,57313054455354 \ -W 20000000 \ 172.1.0.10` - wait_for_leases(3) wait_for_packet_capture() expect(dhcp_offer_packet_content).to include(File.read("./spec/fixtures/expected_lease_options_client_class.txt")) @@ -73,7 +72,6 @@ def wait_for_packet_capture(delay = 5) -o 55,00EA \ -W 20000000 \ 172.1.0.10` - wait_for_leases(3) wait_for_packet_capture() expect(dhcp_offer_packet_content).to include(File.read("./spec/fixtures/expected_lease_options_delivery_optimised.txt"))