diff options
author | Florian Westphal <fw@strlen.de> | 2018-06-08 14:46:00 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-06-08 14:46:00 +0200 |
commit | cd21a243162a2c4b35e4e91b3c4e925ac34ae82c (patch) | |
tree | d2291bb2213b2761b91be230ed32953c8287911b /tests | |
parent | b878cb7d83855f4420791561b63aa4b96d73663a (diff) |
tests: shell: timeout: fix output for HZ=250v0.9.0
4s5ms gets rounded to 4s8ms with HZ=250, which is a common setting.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shell/testcases/sets/0031set_timeout_size_0 | 4 |
1 files changed, 2 insertions, 2 deletions
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 }' |