File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def run_test(self):
54
54
55
55
assert_raises_rpc_error (- 8 , "unknown mode foobar" , node .getmemoryinfo , mode = "foobar" )
56
56
57
- self .log .info ("test logging rpc" )
57
+ self .log .info ("test logging rpc and help " )
58
58
59
59
# Test logging RPC returns the expected number of logging categories.
60
60
assert_equal (len (node .logging ()), 24 )
@@ -66,6 +66,15 @@ def run_test(self):
66
66
node .logging (include = ['qt' ])
67
67
assert_equal (node .logging ()['qt' ], True )
68
68
69
+ # Test logging RPC returns the logging categories in alphabetical order.
70
+ sorted_logging_categories = sorted (node .logging ())
71
+ assert_equal (list (node .logging ()), sorted_logging_categories )
72
+
73
+ # Test logging help returns the logging categories string in alphabetical order.
74
+ categories = ', ' .join (sorted_logging_categories )
75
+ logging_help = self .nodes [0 ].help ('logging' )
76
+ assert f"valid logging categories are: { categories } " in logging_help
77
+
69
78
self .log .info ("test echoipc (testing spawned process in multiprocess build)" )
70
79
assert_equal (node .echoipc ("hello" ), "hello" )
71
80
You can’t perform that action at this time.
0 commit comments