summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-11-06 15:55:29 +0100
committerPhil Sutter <phil@nwl.cc>2024-11-06 16:09:52 +0100
commitffcf95e18c48b6a86acffb1630d65b07293581b5 (patch)
treea32fbb7954f5050e5cec62d97f3c7375529f6e47
parent406ff3c3db9475ddf9cf4eb6854d79ca567a98fd (diff)
tests: shell: iptables/0010-wait_0 is unreliable
Sometimes the test would fail, especially after removing /run/xtables.lock file. Looks like the supposedly blocking iptables-restore coproc sometimes takes a moment to set things up. Fixes: 63ab5b8906f69 ("iptables-legacy: Fix for mandatory lock waiting") Signed-off-by: Phil Sutter <phil@nwl.cc>
-rwxr-xr-xiptables/tests/shell/testcases/iptables/0010-wait_02
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/tests/shell/testcases/iptables/0010-wait_0 b/iptables/tests/shell/testcases/iptables/0010-wait_0
index 4481f966..37a7a58f 100755
--- a/iptables/tests/shell/testcases/iptables/0010-wait_0
+++ b/iptables/tests/shell/testcases/iptables/0010-wait_0
@@ -11,7 +11,7 @@ esac
coproc RESTORE { $XT_MULTI iptables-restore; }
echo "*filter" >&${RESTORE[1]}
-
+sleep 0.5
$XT_MULTI iptables -A FORWARD -j ACCEPT &
ipt_pid=$!