aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-10-06 15:58:13 -0400
committerAndrew Chow <github@achow101.com>2023-10-19 18:06:43 -0400
commitd616d30ea5fdfb897f8375ffd8b9f4536ae7835b (patch)
treeb7d9b2b4f37efdc986357439739b59c5779fbaaa /test/functional
parent118f2d7d70b584eee7b89e58b5cd2d61c59a9bbf (diff)
downloadbitcoin-d616d30ea5fdfb897f8375ffd8b9f4536ae7835b.tar.xz
wallet: Reload watchonly and solvables wallets after migration
When migrating, create the watchonly and solvables wallets without a context. Then unload and reload them after migration completes, as we do for the actual wallet. There is also additional handling for a failed reload.
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/wallet_migration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_migration.py b/test/functional/wallet_migration.py
index 33ab8bf3f8..ad8dbe78ed 100755
--- a/test/functional/wallet_migration.py
+++ b/test/functional/wallet_migration.py
@@ -848,7 +848,7 @@ class WalletMigrationTest(BitcoinTestFramework):
wallet.addmultisigaddress(2, [wallet.getnewaddress(), get_generate_key().pubkey])
wallet.importaddress(get_generate_key().p2pkh_addr)
- assert_raises_rpc_error(-4, "Failed to create new watchonly wallet", wallet.migratewallet)
+ assert_raises_rpc_error(-4, "Failed to create database", wallet.migratewallet)
assert "failed" in self.nodes[0].listwallets()
assert "failed_watchonly" not in self.nodes[0].listwallets()