diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-10-23 13:26:27 +0800 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-11-06 08:28:02 +0800 |
commit | 15c93f075a881deb3ad7b1dd8a4516a9b06e5e11 (patch) | |
tree | 9bbeeba05f637480c344d82b009488869e005e3f /test/functional/wallet_multiwallet.py | |
parent | c456fbd8dfcc748e5ec9feaa57ec0f2900f99cde (diff) |
wallet: Add trailing wallet.dat when detecting duplicate wallet if it's a directory.
Diffstat (limited to 'test/functional/wallet_multiwallet.py')
-rwxr-xr-x | test/functional/wallet_multiwallet.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py index 4f663c82c7..8ab569a3c3 100755 --- a/test/functional/wallet_multiwallet.py +++ b/test/functional/wallet_multiwallet.py @@ -223,6 +223,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') |