From e1dc4afeeb6b3da4b7d9b0ca31ab21dda0a84478 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Thu, 22 Jan 2026 00:24:43 +0100 Subject: [PATCH] test: Rename wallet name in restore attempt in wallet_assumeutxo This prevents potential intermittend failures on windows when the wallet by the same name from the previous test case hasn't been cleaned up yet by it's process. --- test/functional/wallet_assumeutxo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/wallet_assumeutxo.py b/test/functional/wallet_assumeutxo.py index e2991ffb5c7..aeafa41c9c9 100755 --- a/test/functional/wallet_assumeutxo.py +++ b/test/functional/wallet_assumeutxo.py @@ -96,7 +96,7 @@ class AssumeutxoTest(BitcoinTestFramework): assert_equal(n3.pruneblockchain(FINAL_HEIGHT), 298) # 298 is the height of the last block pruned (pruneheight 299) error_message = "Wallet loading failed. Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of a pruned node)" # This backup (backup_w2.dat) was created at height 199, so it can't be restored in a node with a pruneheight of 299 - assert_raises_rpc_error(-4, error_message, n3.restorewallet, "w2", "backup_w2.dat") + assert_raises_rpc_error(-4, error_message, n3.restorewallet, "w2_pruneheight", "backup_w2.dat") self.log.info("Ensuring wallet can be restored from a backup that was created at the pruneheight (pruned node)") # This backup (backup_w.dat) was created at height 299, so it can be restored in a node with a pruneheight of 299