git: 2144e31d8f85 - main - netpfil tests: make the pls tests more robust

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Tue, 04 Jun 2024 14:59:39 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=2144e31d8f85c38da875a180f4c016ea8e08fadf

commit 2144e31d8f85c38da875a180f4c016ea8e08fadf
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-06-03 19:27:59 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-06-04 12:59:59 +0000

    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()