Skip to content

Commit f720cfa

Browse files
committed
test: verify number of categories returned by logging RPC
1 parent 3f083a5 commit f720cfa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/functional/rpc_misc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ def run_test(self):
5454

5555
assert_raises_rpc_error(-8, "unknown mode foobar", node.getmemoryinfo, mode="foobar")
5656

57-
self.log.info("test logging")
57+
self.log.info("test logging rpc")
58+
59+
# Test logging RPC returns the expected number of logging categories.
60+
assert_equal(len(node.logging()), 24)
61+
62+
# Test toggling a logging category on/off/on with the logging RPC.
5863
assert_equal(node.logging()['qt'], True)
5964
node.logging(exclude=['qt'])
6065
assert_equal(node.logging()['qt'], False)

0 commit comments

Comments
 (0)