From: Florian Westphal Date: Fri, 8 Jun 2018 12:46:00 +0000 (+0200) Subject: tests: shell: timeout: fix output for HZ=250 X-Git-Tag: v0.9.0^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd21a243162a2c4b35e4e91b3c4e925ac34ae82c;p=thirdparty%2Fnftables.git tests: shell: timeout: fix output for HZ=250 4s5ms gets rounded to 4s8ms with HZ=250, which is a common setting. Signed-off-by: Florian Westphal --- diff --git a/tests/shell/testcases/sets/0031set_timeout_size_0 b/tests/shell/testcases/sets/0031set_timeout_size_0 index 514c503b..f1d9aa60 100755 --- a/tests/shell/testcases/sets/0031set_timeout_size_0 +++ b/tests/shell/testcases/sets/0031set_timeout_size_0 @@ -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 }'