]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: timeout: fix output for HZ=250 v0.9.0
authorFlorian Westphal <fw@strlen.de>
Fri, 8 Jun 2018 12:46:00 +0000 (14:46 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 8 Jun 2018 12:46:00 +0000 (14:46 +0200)
4s5ms gets rounded to 4s8ms with HZ=250, which is a common setting.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/sets/0031set_timeout_size_0

index 514c503b349b06616d08eef49ab44d9137e075c0..f1d9aa6006e58e355f39d332e063daa261218768 100755 (executable)
@@ -3,10 +3,10 @@
 RULESET="add table x
 add set x y { type ipv4_addr; size 128; timeout 30s; }
 add chain x test
-add rule x test set update ip saddr timeout 1d2h3m4s5ms @y
+add rule x test set update ip saddr timeout 1d2h3m4s8ms @y
 add rule x test set update ip daddr timeout 100ms @y"
 
 set -e
 $NFT -f - <<< "$RULESET"
-$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s5ms }'
+$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s8ms }'
 $NFT list chain x test | grep -q 'update @y { ip daddr timeout 100ms }'