Skip to content

Commit 0ea84bc

Browse files
committed
test: explicitly check boolean verbosity is disallowed
1 parent 7a2e6b6 commit 0ea84bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/rpc_orphans.py

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def orphan_details_match(self, orphan, tx, verbosity):
141141

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

0 commit comments

Comments
 (0)