Skip to content

Commit 8907df9

Browse files
committed
qa: Ensure wallet unload during walletpassphrase timeout
1 parent 321decf commit 8907df9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/wallet_multiwallet.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99
import os
1010
import shutil
11+
import time
1112

1213
from test_framework.test_framework import BitcoinTestFramework
1314
from test_framework.test_node import ErrorMatch
@@ -267,7 +268,11 @@ def wallet_file(name):
267268
assert 'w1' not in self.nodes[0].listwallets()
268269

269270
# Successfully unload the wallet referenced by the request endpoint
271+
# Also ensure unload works during walletpassphrase timeout
272+
w2.encryptwallet('test')
273+
w2.walletpassphrase('test', 1)
270274
w2.unloadwallet()
275+
time.sleep(1.1)
271276
assert 'w2' not in self.nodes[0].listwallets()
272277

273278
# Successfully unload all wallets

0 commit comments

Comments
 (0)