aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-10-23 13:26:27 +0800
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-03-11 21:54:44 +0000
commitcaf1146b1345d70fbe4cc5f662d8393a79ac6068 (patch)
tree64e418a24f3c6354c6cbbbec591fc508b61f88db /test/functional
parent34da2b7c76a023459e46e3a2ca4dc3ecc2b9a438 (diff)
wallet: Add trailing wallet.dat when detecting duplicate wallet if it's a directory.
Github-Pull: #14552 Rebased-From: 15c93f0
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/wallet_multiwallet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py
index 6e0c109e60..bf33d3c628 100755
--- a/test/functional/wallet_multiwallet.py
+++ b/test/functional/wallet_multiwallet.py
@@ -217,6 +217,9 @@ class MultiWalletTest(BitcoinTestFramework):
# Fail to load duplicate wallets
assert_raises_rpc_error(-4, 'Wallet file verification failed: Error loading wallet w1. Duplicate -wallet filename specified.', self.nodes[0].loadwallet, wallet_names[0])
+ # Fail to load duplicate wallets by different ways (directory and filepath)
+ assert_raises_rpc_error(-4, "Wallet file verification failed: Error loading wallet wallet.dat. Duplicate -wallet filename specified.", self.nodes[0].loadwallet, 'wallet.dat')
+
# 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')