diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2024-03-02 18:26:27 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2024-09-01 20:56:39 +0200 |
commit | 842685035244e151f4a10019af2dfe0563f11a82 (patch) | |
tree | 41157e000d68ea3540c8f5cf5699d4e3d2934b06 /test/functional/rpc_dumptxoutset.py | |
parent | 993cafe7e45ab0af1e862c7def3de688f47c0443 (diff) |
test: Test for dumptxoutset at specific height
Diffstat (limited to 'test/functional/rpc_dumptxoutset.py')
-rwxr-xr-x | test/functional/rpc_dumptxoutset.py | 4 |
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() |