Skip to content

Commit 4ea7732

Browse files
committed
tests: add test case for loading copied wallet twice
1 parent 2d796fa commit 4ea7732

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_multiwallet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ def wallet_file(name):
229229
# Fail to load if one wallet is a copy of another
230230
assert_raises_rpc_error(-1, "BerkeleyBatch: Can't open database w8_copy (duplicates fileid", self.nodes[0].loadwallet, 'w8_copy')
231231

232+
# Fail to load if one wallet is a copy of another, test this twice to make sure that we don't re-introduce #14304
233+
assert_raises_rpc_error(-1, "BerkeleyBatch: Can't open database w8_copy (duplicates fileid", self.nodes[0].loadwallet, 'w8_copy')
234+
235+
232236
# Fail to load if wallet file is a symlink
233237
if os.name != 'nt':
234238
assert_raises_rpc_error(-4, "Wallet file verification failed: Invalid -wallet path 'w8_symlink'", self.nodes[0].loadwallet, 'w8_symlink')

0 commit comments

Comments
 (0)