From 98c1bf371c5dd613646f53fdc4796c366104f844 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Wed, 8 Oct 2025 09:56:24 +0200 Subject: [PATCH] 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 fad90f3b261..598ac17c67f 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