Merge 11f68cc810 into merged_master (Bitcoin PR bitcoin/bitcoin#31212)

This commit is contained in:
ivanlele 2026-04-08 12:06:36 +00:00
commit 5eec58e762
No known key found for this signature in database
16 changed files with 210 additions and 75 deletions

View file

@ -168,6 +168,9 @@ class TestBitcoinCli(BitcoinTestFramework):
self.log.info("Test connecting with non-existing RPC cookie file")
assert_raises_process_error(1, "Could not locate RPC credentials", self.nodes[0].cli('-rpccookiefile=does-not-exist', '-rpcpassword=').echo)
self.log.info("Test connecting without RPC cookie file and with password arg")
assert_equal(BLOCKS, self.nodes[0].cli('-norpccookiefile', f'-rpcuser={user}', f'-rpcpassword={password}').getblockcount())
self.log.info("Test -getinfo with arguments fails")
assert_raises_process_error(1, "-getinfo takes no arguments", self.nodes[0].cli('-getinfo').help)