aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2025-09-03 14:04:41 +0000
committerKristof Provost <kp@FreeBSD.org>2025-09-03 17:01:12 +0000
commitf4f42421f38ecf06396332fda563c3dcc8d32143 (patch)
tree0d1ef8fe39c782d3ea6de0bc54353336a4af3ac2
parent13e7b21901a5e246e4b42d28e930ec80fe6889d0 (diff)
pf tests: sctp:pfsync robustness improvement
Add a wait after we establish the SCTP connection to give pfsync some time to work before we check if it has synced the state to the other jail. PR: 289239 Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--tests/sys/netpfil/pf/sctp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/sctp.sh b/tests/sys/netpfil/pf/sctp.sh
index 57dcdad1d866..78055f5a9dd2 100644
--- a/tests/sys/netpfil/pf/sctp.sh
+++ b/tests/sys/netpfil/pf/sctp.sh
@@ -673,6 +673,9 @@ pfsync_body()
atf_fail "Initial SCTP connection failed"
fi
+ # Give pfsync some time to do its thing
+ sleep 1
+
# Verify that two has the connection too
state=$(jexec ${j}two pfctl -ss | grep sctp)
if [ -z "${state}" ];