summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/typeof_maps_add_delete
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-04-24 23:41:59 +0200
committerPhil Sutter <phil@nwl.cc>2024-04-24 23:59:00 +0200
commit06943730976f71e07aac41b1b882ccc53cd6ec35 (patch)
tree7ace5e2db075de3b6ee139f82f29e17a53fc75e9 /tests/shell/testcases/maps/typeof_maps_add_delete
parenta0a15e4dd0576bc4efd9b01fdd4ee1c565effac9 (diff)
tests: shell: Fix for maps/typeof_maps_add_delete with ASAN
With both KASAN and ASAN enabled, my VM is too slow so the ping-induced set entry times out before the test checks its existence. Increase its timeout to 2s, seems to do the trick. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/shell/testcases/maps/typeof_maps_add_delete')
-rwxr-xr-xtests/shell/testcases/maps/typeof_maps_add_delete4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/maps/typeof_maps_add_delete b/tests/shell/testcases/maps/typeof_maps_add_delete
index d2ac9f1c..2d718c5f 100755
--- a/tests/shell/testcases/maps/typeof_maps_add_delete
+++ b/tests/shell/testcases/maps/typeof_maps_add_delete
@@ -30,7 +30,7 @@ EXPECTED="table ip dynset {
chain input {
type filter hook input priority 0; policy accept;
- add @dynmark { 10.2.3.4 timeout 1s : 0x2 } comment \"also check timeout-gc\"
+ add @dynmark { 10.2.3.4 timeout 2s : 0x2 } comment \"also check timeout-gc\"
meta l4proto icmp ip daddr 127.0.0.42 jump test_ping
}
}"
@@ -45,7 +45,7 @@ ping -c 1 127.0.0.42
$NFT get element ip dynset dynmark { 10.2.3.4 }
# wait so that 10.2.3.4 times out.
-sleep 2
+sleep 3
set +e
$NFT get element ip dynset dynmark { 10.2.3.4 } && exit 1