From cd21a243162a2c4b35e4e91b3c4e925ac34ae82c Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 8 Jun 2018 14:46:00 +0200 Subject: 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 --- tests/shell/testcases/sets/0031set_timeout_size_0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/shell/testcases/sets/0031set_timeout_size_0') 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 }' -- cgit v1.2.3