Skip to content

Commit

Permalink
qa: Ensure wallet unload during walletpassphrase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Oct 20, 2018
1 parent 321decf commit 8907df9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/wallet_multiwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""
import os
import shutil
import time

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

# 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()
time.sleep(1.1)
assert 'w2' not in self.nodes[0].listwallets()

# Successfully unload all wallets
Expand Down

0 comments on commit 8907df9

Please sign in to comment.