Skip to content

Commit

Permalink
Correct sleep values in 077_state_timeout_with_dump
Browse files Browse the repository at this point in the history
that test was setting timeout of state for 5 seconds, then
checking state, sleeping for 3 seconds, checking state again, sleeping
for 3 seconds, checking that the state is gone.

Due to some delays that could happen with github CI, the first sleep
could last a little bit longer, and then the second state check sees
an empty state table.

Changed sleep values from 3,3 to 2,4
  • Loading branch information
ol-imorozko authored and GeorgyKirichenko committed Jan 22, 2025
1 parent 890fbcf commit 3feeadc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ steps:

- cli: fw list states | grep -q "allow udp from 10.0.0.1 53 to 10.0.0.10 1024"

- sleep: 3 # Wait, state should still be present
- sleep: 2 # Wait, state should still be present

- cli: fw list states | grep -q "allow udp from 10.0.0.1 53 to 10.0.0.10 1024"

- sleep: 3 # Wait for state to expire (total sleep 6s)
- sleep: 4 # Wait for state to expire (total sleep 6s)

- cli_check: |
fw list states
Expand All @@ -34,11 +34,11 @@ steps:

- cli: fw list states | grep -q "allow udp from 10.0.0.1 53 to 10.0.0.10 1024"

- sleep: 3 # Wait, state should still be present
- sleep: 2 # Wait, state should still be present

- cli: fw list states | grep -q "allow udp from 10.0.0.1 53 to 10.0.0.10 1024"

- sleep: 3 # Wait for state to expire (total sleep 6s)
- sleep: 4 # Wait for state to expire (total sleep 6s)

- cli_check: |
fw list states
Expand Down

0 comments on commit 3feeadc

Please sign in to comment.