Skip to content

Commit

Permalink
test: explicitly check boolean verbosity is disallowed
Browse files Browse the repository at this point in the history
  • Loading branch information
tdb3 committed Oct 25, 2024
1 parent 7a2e6b6 commit 0ea84bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/rpc_orphans.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def orphan_details_match(self, orphan, tx, verbosity):

def test_misc(self):
node = self.nodes[0]
assert_raises_rpc_error(-3, "Verbosity was boolean but only integer allowed", node.getorphantxs, verbosity=True)
assert_raises_rpc_error(-3, "Verbosity was boolean but only integer allowed", node.getorphantxs, verbosity=False)
help_output = node.help()
self.log.info("Check that getorphantxs is a hidden RPC")
assert "getorphantxs" not in help_output
Expand Down

0 comments on commit 0ea84bc

Please sign in to comment.