aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_dumptxoutset.py
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2024-03-02 18:26:27 +0100
committerFabian Jahr <fjahr@protonmail.com>2024-09-01 20:56:39 +0200
commit842685035244e151f4a10019af2dfe0563f11a82 (patch)
tree41157e000d68ea3540c8f5cf5699d4e3d2934b06 /test/functional/rpc_dumptxoutset.py
parent993cafe7e45ab0af1e862c7def3de688f47c0443 (diff)
test: Test for dumptxoutset at specific height
Diffstat (limited to 'test/functional/rpc_dumptxoutset.py')
-rwxr-xr-xtest/functional/rpc_dumptxoutset.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_dumptxoutset.py b/test/functional/rpc_dumptxoutset.py
index 6c98b4ee66..2542ddd220 100755
--- a/test/functional/rpc_dumptxoutset.py
+++ b/test/functional/rpc_dumptxoutset.py
@@ -56,6 +56,10 @@ class DumptxoutsetTest(BitcoinTestFramework):
assert_raises_rpc_error(
-8, "Couldn't open file {}.incomplete for writing".format(invalid_path), node.dumptxoutset, invalid_path, "latest")
+ self.log.info(f"Test that dumptxoutset with unknown dump type fails")
+ assert_raises_rpc_error(
+ -8, 'Invalid snapshot type "bogus" specified. Please specify "rollback" or "latest"', node.dumptxoutset, 'utxos.dat', "bogus")
+
if __name__ == '__main__':
DumptxoutsetTest(__file__).main()