Skip to content

Commit 07fefb3

Browse files
committed
tests: add functional tests for RPC debug
1 parent 67b2153 commit 07fefb3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/functional/rpc_misc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def run_test(self):
6262
assert_equal(node.logging()['qt'], False)
6363
node.logging(include=['qt'])
6464
assert_equal(node.logging()['qt'], True)
65+
node.debug('none')
66+
assert_equal(node.logging()['qt'], False)
67+
node.debug('qt')
68+
assert_equal(node.logging()['qt'], True)
6569

6670
# Test logging RPC returns the logging categories in alphabetical order.
6771
sorted_logging_categories = sorted(node.logging())
@@ -71,6 +75,7 @@ def run_test(self):
7175
categories = ', '.join(sorted_logging_categories)
7276
logging_help = self.nodes[0].help('logging')
7377
assert f"valid logging categories are: {categories}" in logging_help
78+
assert f"valid logging categories are: {categories}" in self.nodes[0].help('debug')
7479

7580
self.log.info("test echoipc (testing spawned process in multiprocess build)")
7681
assert_equal(node.echoipc("hello"), "hello")

test/functional/test_runner.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,6 @@ def _get_uncovered_rpc_commands(self):
898898
covered_cmds.add('voteraw')
899899
# TODO: implement functional tests for getmerkleblocks
900900
covered_cmds.add('getmerkleblocks')
901-
# TODO: drop it with v23+: remove `debug` in favour of `logging`
902-
covered_cmds.add('debug')
903901

904902
if not os.path.isfile(coverage_ref_filename):
905903
raise RuntimeError("No coverage reference found")

0 commit comments

Comments
 (0)