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.
This commit is contained in:
Fabian Jahr 2026-01-22 00:24:43 +01:00
parent 5715748333
commit e1dc4afeeb
No known key found for this signature in database
GPG Key ID: F13D1E9D890798CD

View File

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