git: 98c1bf371c5d - main - pf tests: make syncookie:loopback more robust

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Sat, 11 Oct 2025 12:03:52 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=98c1bf371c5dd613646f53fdc4796c366104f844

commit 98c1bf371c5dd613646f53fdc4796c366104f844
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-10-08 07:56:24 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-10-11 11:24:24 +0000

    pf tests: make syncookie:loopback more robust
    
    Give the background nc process a bit of time to start before we attempt to
    connect to it.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netpfil/pf/syncookie.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/sys/netpfil/pf/syncookie.sh b/tests/sys/netpfil/pf/syncookie.sh
index fad90f3b2618..598ac17c67f5 100644
--- a/tests/sys/netpfil/pf/syncookie.sh
+++ b/tests/sys/netpfil/pf/syncookie.sh
@@ -253,6 +253,9 @@ Creativity, no.
 __EOF__
 	nc -l $addr $port >out &
 
+	# Give the background nc time to start
+	sleep 1
+
 	atf_check nc -N $addr $port < in
 
 	atf_check -o file:in cat out