summaryrefslogtreecommitdiffstats
path: root/tests/monitor/testcases
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-08-29 15:22:56 +0200
committerPhil Sutter <phil@nwl.cc>2023-08-29 18:12:56 +0200
commiteac68b84227a3fc46572f3bae1113eaa91d13f24 (patch)
treef08d0abe830ce60a201594f0ec6323da701a9eda /tests/monitor/testcases
parentf66ef82e714aa502a2f59ffc31a6ffb16590db09 (diff)
tests: monitor: Fix time format in ct timeout test
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>
Diffstat (limited to 'tests/monitor/testcases')
-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}}}}