From 2144e31d8f85c38da875a180f4c016ea8e08fadf Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 3 Jun 2024 21:27:59 +0200 Subject: [PATCH] netpfil tests: make the pls tests more robust 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") --- tests/sys/netpfil/common/dummynet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/netpfil/common/dummynet.sh b/tests/sys/netpfil/common/dummynet.sh index 3c930cfe2aff..0df0db4546c8 100644 --- a/tests/sys/netpfil/common/dummynet.sh +++ b/tests/sys/netpfil/common/dummynet.sh @@ -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() @@ -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()