aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-07-27 00:56:30 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-07-28 11:23:42 +0100
commit3ef77a0c1288df524fdf0c90ca70c986f473b787 (patch)
tree8a1a1d39c81ee168e32ff2ffc6a0a7fc81cdcc1d /test/functional
parent0b11a07848754347add990a2b2cff4828ffa2be0 (diff)
downloadbitcoin-3ef77a0c1288df524fdf0c90ca70c986f473b787.tar.xz
Reject duplicate wallet filenames
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/multiwallet.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/multiwallet.py b/test/functional/multiwallet.py
index 173f06cf5d..5844d99139 100755
--- a/test/functional/multiwallet.py
+++ b/test/functional/multiwallet.py
@@ -18,6 +18,13 @@ class MultiWalletTest(BitcoinTestFramework):
self.extra_args = [['-wallet=w1', '-wallet=w2', '-wallet=w3']]
def run_test(self):
+ self.stop_node(0)
+
+ # should not initialize if there are duplicate wallets
+ self.assert_start_raises_init_error(0, self.options.tmpdir, ['-wallet=w1', '-wallet=w1'], 'Duplicate -wallet filename')
+
+ self.nodes[0] = self.start_node(0, self.options.tmpdir, self.extra_args[0])
+
w1 = self.nodes[0] / "wallet/w1"
w1.generate(1)