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 832d95e commit dc1723b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dhcp-service/spec/lease_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def wait_for_leases(expected_count, retries = 5, delay = 2)
#raise "Expected #{expected_count} leases, got #{db_client[:lease4].count}"
end

def wait_for_packet_capture(delay = 5)
sleep delay # Wait for the specified delay to ensure packet capture completes
def wait_for_packet_capture(process, packets, delay = 5)
sleep delay
sleep(packets * 0.1)
end

before do
Expand Down

0 comments on commit dc1723b

Please sign in to comment.