aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2025-10-08 07:56:24 +0000
committerKristof Provost <kp@FreeBSD.org>2025-10-11 11:24:24 +0000
commit98c1bf371c5dd613646f53fdc4796c366104f844 (patch)
tree0fe5188f692e4cf23ad7c2290179e01b01199d60
parent2d9fd2c573c318754e3f36d2549e0e57ce199d60 (diff)
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")
-rw-r--r--tests/sys/netpfil/pf/syncookie.sh3
1 files changed, 3 insertions, 0 deletions
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