mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-13 08:58:52 +00:00
test: wallet: Check direct file backup name.
This check ensures that when migrating a legacy wallet with a direct filename, the backup file is named as expected. Co-authored-by: Ava Chow <github@achow101.com>
This commit is contained in:
parent
9f713b83dc
commit
e22c3599c6
@ -584,7 +584,10 @@ class WalletMigrationTest(BitcoinTestFramework):
|
||||
)
|
||||
assert (self.master_node.wallets_path / "plainfile").is_file()
|
||||
|
||||
self.master_node.migratewallet("plainfile")
|
||||
mocked_time = int(time.time())
|
||||
self.master_node.setmocktime(mocked_time)
|
||||
migrate_res = self.master_node.migratewallet("plainfile")
|
||||
assert_equal(f"plainfile_{mocked_time}.legacy.bak", os.path.basename(migrate_res["backup_path"]))
|
||||
wallet = self.master_node.get_wallet_rpc("plainfile")
|
||||
info = wallet.getwalletinfo()
|
||||
assert_equal(info["descriptors"], True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user