summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-08-29 15:22:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-11-03 12:22:47 +0100
commit26115319eaba4aa81f537c814283ce7bfffa35c0 (patch)
tree7f88d1bed1bf5b4c6bb5423dafdef594ff0353b0
parent5a79cf5cd9883ef54c82dee2efcdaaa9f6c8f5f5 (diff)
tests: monitor: Fix time format in ct timeout test
commit eac68b84227a3fc46572f3bae1113eaa91d13f24 upstream. The old "plain" numbers are still accepted (and assumed to be in seconds), but output will use units which is unexpected due to 'O -'. Adjust input instead of adding this subtly different output line. Fixes: 5c25c5a35cbd2 ("parser: allow ct timeouts to use time_spec values") Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--tests/monitor/testcases/object.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/object.t b/tests/monitor/testcases/object.t
index 2afe33c8..53a9f8c5 100644
--- a/tests/monitor/testcases/object.t
+++ b/tests/monitor/testcases/object.t
@@ -37,7 +37,7 @@ I delete ct helper ip t cth
O -
J {"delete": {"ct helper": {"family": "ip", "name": "cth", "table": "t", "handle": 0, "type": "sip", "protocol": "tcp", "l3proto": "ip"}}}
-I add ct timeout ip t ctt { protocol udp; l3proto ip; policy = { unreplied : 15, replied : 12 }; }
+I add ct timeout ip t ctt { protocol udp; l3proto ip; policy = { unreplied : 15s, replied : 12s }; }
O -
J {"add": {"ct timeout": {"family": "ip", "name": "ctt", "table": "t", "handle": 0, "protocol": "udp", "l3proto": "ip", "policy": {"unreplied": 15, "replied": 12}}}}