]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: fix spurious dump failure in vmap timeout test
authorFlorian Westphal <fw@strlen.de>
Fri, 11 Oct 2024 00:32:08 +0000 (02:32 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 11 Oct 2024 08:25:45 +0000 (10:25 +0200)
commit95017b8c8f10ada09c2faa7e6bae71b60f38f259
treeb6c9c70326269165c2764e77c2f892586ab69137
parent3271d78e70ec75246e8a61a6791fe22b8d89c2c1
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 <fw@strlen.de>
tests/shell/testcases/maps/vmap_timeout