aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-10-24 12:33:50 +0800
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-03-11 21:54:44 +0000
commit34da2b7c76a023459e46e3a2ca4dc3ecc2b9a438 (patch)
tree2ef89bfe7d967a879864e648a93dd86ed9fbbf12
parent8965b6ab4753f3223d90d9c1ab03b190f0320dd8 (diff)
downloadbitcoin-34da2b7c76a023459e46e3a2ca4dc3ecc2b9a438.tar.xz
tests: add test case for loading copied wallet twice
Github-Pull: #14320 Rebased-From: 4ea7732
-rwxr-xr-xtest/functional/wallet_multiwallet.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py
index f53172639c..6e0c109e60 100755
--- a/test/functional/wallet_multiwallet.py
+++ b/test/functional/wallet_multiwallet.py
@@ -220,6 +220,10 @@ class MultiWalletTest(BitcoinTestFramework):
# 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')