Skip to content

Commit

Permalink
netpfil tests: make the pls tests more robust
Browse files Browse the repository at this point in the history
Give them more time to hit the expected loss numbers.
We see occasional failures during CI runs. This makes that less likely.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
kprovost committed Jun 4, 2024
1 parent 1c5b886 commit 2144e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sys/netpfil/common/dummynet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ pls_basic_body()
# are dropped (84 - 96 responses).
# repeat up to 6 times if the initial
# checks fail
atf_check -s exit:0 -o match:'100 packets transmitted, (8[4-9]|9[0-6]) packets received' -r 6:10 ping -i 0.010 -c 100 192.0.2.2
atf_check -s exit:0 -o match:'100 packets transmitted, (8[4-9]|9[0-6]) packets received' -r 20:10 ping -i 0.010 -c 100 192.0.2.2
}

pls_basic_cleanup()
Expand Down Expand Up @@ -604,7 +604,7 @@ pls_gilbert_body()
# are dropped (70 - 85 responses).
# repeat up to 6 times if the initial
# checks fail
atf_check -s exit:0 -o match:'100 packets transmitted, (7[0-9]|8[0-5]) packets received' -r 6:10 ping -i 0.010 -c 100 192.0.2.2
atf_check -s exit:0 -o match:'100 packets transmitted, (7[0-9]|8[0-5]) packets received' -r 20:10 ping -i 0.010 -c 100 192.0.2.2
}

pls_gilbert_cleanup()
Expand Down

0 comments on commit 2144e31

Please sign in to comment.