summaryrefslogtreecommitdiffstats
path: root/tests/monitor/testcases/set-multiple.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-08-23 23:57:28 +0200
committerPhil Sutter <phil@nwl.cc>2025-08-24 00:04:25 +0200
commit428462077f415fe49619ec5d6cbf7477ee5359bc (patch)
tree4a7be04186d180f27aa389dd37613ad9db86387c /tests/monitor/testcases/set-multiple.t
parentcbd7aef7637a4ca647380118a2d3e9146121d5d2 (diff)
tests: monitor: Fix for flag arrays in JSON output
Missed to adjust the expected JSON output in this test suite, too. Fixes: 5e492307c2c93 ("json: Do not reduce single-item arrays on output") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/monitor/testcases/set-multiple.t')
-rw-r--r--tests/monitor/testcases/set-multiple.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/monitor/testcases/set-multiple.t b/tests/monitor/testcases/set-multiple.t
index 84de98e9..bd7a6246 100644
--- a/tests/monitor/testcases/set-multiple.t
+++ b/tests/monitor/testcases/set-multiple.t
@@ -4,8 +4,8 @@ I add set ip t portrange { type inet_service; flags interval; }
I add set ip t portrange2 { type inet_service; flags interval; }
O -
J {"add": {"table": {"family": "ip", "name": "t", "handle": 0}}}
-J {"add": {"set": {"family": "ip", "name": "portrange", "table": "t", "type": "inet_service", "handle": 0, "flags": "interval"}}}
-J {"add": {"set": {"family": "ip", "name": "portrange2", "table": "t", "type": "inet_service", "handle": 0, "flags": "interval"}}}
+J {"add": {"set": {"family": "ip", "name": "portrange", "table": "t", "type": "inet_service", "handle": 0, "flags": ["interval"]}}}
+J {"add": {"set": {"family": "ip", "name": "portrange2", "table": "t", "type": "inet_service", "handle": 0, "flags": ["interval"]}}}
# make sure concurrent adds work
I add element ip t portrange { 1024-65535 }