Skip to content

Commit

Permalink
Update lease_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
juddin927 authored Jun 12, 2024
1 parent cf8622e commit 832d95e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dhcp-service/spec/lease_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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"))
Expand All @@ -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"))
Expand Down

0 comments on commit 832d95e

Please sign in to comment.