mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
test: add coverage to ensure the first arg of scantxoutset is needed
Include a test that checks whether the first argument of scantxoutset RPC call is required. The rpc call should fail if the "start" argument is not provided.
This commit is contained in:
parent
49b87bfe7e
commit
7e3d4f8e86
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ class ScantxoutsetTest(BitcoinTestFramework):
|
|||
assert_equal(self.nodes[0].scantxoutset("status"), None)
|
||||
assert_equal(self.nodes[0].scantxoutset("abort"), False)
|
||||
|
||||
# check that first arg is needed
|
||||
assert_raises_rpc_error(-1, "scantxoutset \"action\" ( [scanobjects,...] )", self.nodes[0].scantxoutset)
|
||||
|
||||
# Check that second arg is needed for start
|
||||
assert_raises_rpc_error(-1, "scanobjects argument is required for the start action", self.nodes[0].scantxoutset, "start")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue