From 0ea84bc362f395fd247623c22942eb5ca3d1b874 Mon Sep 17 00:00:00 2001 From: tdb3 <106488469+tdb3@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:05:50 -0400 Subject: [PATCH] test: explicitly check boolean verbosity is disallowed --- test/functional/rpc_orphans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/rpc_orphans.py b/test/functional/rpc_orphans.py index f781cbda404..4871166a390 100755 --- a/test/functional/rpc_orphans.py +++ b/test/functional/rpc_orphans.py @@ -141,6 +141,8 @@ class OrphanRPCsTest(BitcoinTestFramework): 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