diff options
author | Phil Sutter <phil@nwl.cc> | 2021-07-26 15:27:32 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-07-26 16:37:40 +0200 |
commit | c9c5b5f621c37d17140dac682d211825ef321093 (patch) | |
tree | 724d0bb57a4bd757b99d4c7b792cc526a0275097 | |
parent | 4e8dff2cb4da818a937f8c0efa1a0d73b632297e (diff) |
tests: shell: Fix bogus testsuite failure with 100Hz
On kernels with CONFIG_HZ=100, clock granularity does not allow tracking
timeouts in single digit ms range. Change sets/0031set_timeout_size_0 to
not expose this detail.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
-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 9edd5f6f..796640d6 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; flags dynamic; } add chain x test -add rule x test set update ip saddr timeout 1d2h3m4s8ms @y +add rule x test set update ip saddr timeout 1d2h3m4s10ms @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 1d2h3m4s8ms }' +$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s10ms }' $NFT list chain x test | grep -q 'update @y { ip daddr timeout 100ms }' |