qa: Ensure wallet unload during walletpassphrase timeout
This commit is contained in:
parent
321decffa1
commit
8907df9e02
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,7 @@ Verify that a bitcoind node can load multiple wallet files
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import time
|
||||||
|
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.test_node import ErrorMatch
|
from test_framework.test_node import ErrorMatch
|
||||||
|
@ -267,7 +268,11 @@ class MultiWalletTest(BitcoinTestFramework):
|
||||||
assert 'w1' not in self.nodes[0].listwallets()
|
assert 'w1' not in self.nodes[0].listwallets()
|
||||||
|
|
||||||
# Successfully unload the wallet referenced by the request endpoint
|
# Successfully unload the wallet referenced by the request endpoint
|
||||||
|
# Also ensure unload works during walletpassphrase timeout
|
||||||
|
w2.encryptwallet('test')
|
||||||
|
w2.walletpassphrase('test', 1)
|
||||||
w2.unloadwallet()
|
w2.unloadwallet()
|
||||||
|
time.sleep(1.1)
|
||||||
assert 'w2' not in self.nodes[0].listwallets()
|
assert 'w2' not in self.nodes[0].listwallets()
|
||||||
|
|
||||||
# Successfully unload all wallets
|
# Successfully unload all wallets
|
||||||
|
|
Loading…
Reference in a new issue