Skip to content

Commit

Permalink
tests: add test case for loading copied wallet twice
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#14320
Rebased-From: 4ea7732
  • Loading branch information
ken2812221 authored and uhliksk committed May 1, 2019
1 parent cd29398 commit 6396a64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/wallet_multiwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ def wallet_file(name):
# Fail to load if one wallet is a copy of another
assert_raises_rpc_error(-1, "BerkeleyBatch: Can't open database w8_copy (duplicates fileid", self.nodes[0].loadwallet, 'w8_copy')

# Fail to load if one wallet is a copy of another, test this twice to make sure that we don't re-introduce #14304
assert_raises_rpc_error(-1, "BerkeleyBatch: Can't open database w8_copy (duplicates fileid", self.nodes[0].loadwallet, 'w8_copy')


# Fail to load if wallet file is a symlink
assert_raises_rpc_error(-4, "Wallet file verification failed: Invalid -wallet path 'w8_symlink'", self.nodes[0].loadwallet, 'w8_symlink')

Expand Down

0 comments on commit 6396a64

Please sign in to comment.