mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
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:
parent
5715748333
commit
e1dc4afeeb
@ -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)
|
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)"
|
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
|
# 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)")
|
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
|
# This backup (backup_w.dat) was created at height 299, so it can be restored in a node with a pruneheight of 299
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user