From: Florian Westphal Date: Fri, 11 Oct 2024 00:32:08 +0000 (+0200) Subject: tests: shell: fix spurious dump failure in vmap timeout test X-Git-Tag: v1.1.2~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95017b8c8f10ada09c2faa7e6bae71b60f38f259;p=thirdparty%2Fnftables.git tests: shell: fix spurious dump failure in vmap timeout test Blamed commit can update the timeout to 6s, but last line waits for 5 seconds and expects that to be enough to have all elements vanish. Fix the typo to limit update timeout also to 5 seconds and not 6. This fixes spurious dump failures like this one: - elements = { 1.2.3.4 . 22 : jump ssh_input } + elements = { 1.2.3.4 . 22 : jump ssh_input, + 10.0.95.144 . 38023 timeout 6s expires 545ms : jump other_input } Fixes: db80037c0279 ("tests: shell: extend vmap test with updates") Signed-off-by: Florian Westphal --- diff --git a/tests/shell/testcases/maps/vmap_timeout b/tests/shell/testcases/maps/vmap_timeout index 3f0563af..6d73f3cc 100755 --- a/tests/shell/testcases/maps/vmap_timeout +++ b/tests/shell/testcases/maps/vmap_timeout @@ -32,7 +32,7 @@ for i in $(seq 1 100) ; do timeout=$((timeout+1)) expire=$((RANDOM%timeout)) utimeout=$((RANDOM%5)) - utimeout=$((timeout+1)) + utimeout=$((utimeout+1)) timeout_str="timeout ${timeout}s" expire_str=""