Skip to content

Commit 24d55fb

Browse files
committed
test: added coverage to rpc_scantxoutset.py
Included a test that checks if an invalid first argument is entered we receive a rpc error. The rpc should fail if "start", "status" or "abort" is not the first command.
1 parent 7f4ab67 commit 24d55fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/rpc_scantxoutset.py

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def run_test(self):
123123
# Check that second arg is needed for start
124124
assert_raises_rpc_error(-1, "scanobjects argument is required for the start action", self.nodes[0].scantxoutset, "start")
125125

126+
# Check that invalid command give error
127+
assert_raises_rpc_error(-8, "Invalid action 'invalid_command'", self.nodes[0].scantxoutset, "invalid_command")
128+
126129

127130
if __name__ == "__main__":
128131
ScantxoutsetTest().main()

0 commit comments

Comments
 (0)