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:
Hodlinator 2026-01-26 11:04:53 +01:00
parent d1a4ddb58e
commit bb1aff7ed7
No known key found for this signature in database

View File

@ -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')