mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
test: explicitly check boolean verbosity is disallowed
Github-Pull: #31043
Rebased-From: 0ea84bc362
This commit is contained in:
parent
f915da77cb
commit
ba9560b59a
@ -141,6 +141,8 @@ class OrphanRPCsTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
def test_misc(self):
|
def test_misc(self):
|
||||||
node = self.nodes[0]
|
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()
|
help_output = node.help()
|
||||||
self.log.info("Check that getorphantxs is a hidden RPC")
|
self.log.info("Check that getorphantxs is a hidden RPC")
|
||||||
assert "getorphantxs" not in help_output
|
assert "getorphantxs" not in help_output
|
||||||
|
Loading…
Reference in New Issue
Block a user