qa: Ensure wallet unload during walletpassphrase timeout
0.17 branch doesn't include #12493 which changed encryptwallet behavior. For that
reason the test is adjusted.
Github-Pull: #14453
Rebased-From: 8907df9
This commit is contained in:
parent
2ff659ac91
commit
4904d21df0
1 changed files with 4 additions and 0 deletions
|
@ -288,6 +288,10 @@ class MultiWalletTest(BitcoinTestFramework):
|
|||
# Also ensure unload works during walletpassphrase timeout
|
||||
w2.encryptwallet('test')
|
||||
w2.walletpassphrase('test', 1)
|
||||
self.restart_node(0, ['-wallet={}'.format(wallet) for wallet in wallets])
|
||||
w1 = node.get_wallet_rpc(wallet_names[0])
|
||||
w2 = node.get_wallet_rpc(wallet_names[1])
|
||||
w2.walletpassphrase('test', 1)
|
||||
w2.unloadwallet()
|
||||
time.sleep(1.1)
|
||||
assert 'w2' not in self.nodes[0].listwallets()
|
||||
|
|
Loading…
Add table
Reference in a new issue