mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 08:22:46 +00:00
move-only(qa): Move wallet creation check down to others
Makes the functions broken out from run_test() in the next commit more cohesive.
This commit is contained in:
parent
d1a4ddb58e
commit
bb1aff7ed7
@ -153,10 +153,6 @@ class MultiWalletTest(BitcoinTestFramework):
|
||||
|
||||
assert_equal(set(node.listwallets()), set(wallet_names))
|
||||
|
||||
# should raise rpc error if wallet path can't be created
|
||||
err_code = -4
|
||||
assert_raises_rpc_error(err_code, "filesystem error:" if platform.system() != 'Windows' else "create_directories:", node.createwallet, "w8/bad")
|
||||
|
||||
# check that all requested wallets were created
|
||||
self.stop_node(0)
|
||||
for wallet_name in wallet_names:
|
||||
@ -304,6 +300,10 @@ class MultiWalletTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Test dynamic wallet creation.")
|
||||
|
||||
# should raise rpc error if wallet path can't be created
|
||||
err_code = -4
|
||||
assert_raises_rpc_error(err_code, "filesystem error:" if platform.system() != 'Windows' else "create_directories:", node.createwallet, "w8/bad")
|
||||
|
||||
# Fail to create a wallet if it already exists.
|
||||
path = wallet_dir(node, "w2")
|
||||
assert_raises_rpc_error(-4, "Failed to create database path '{}'. Database already exists.".format(path), node.createwallet, 'w2')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user