Skip to content
Permalink
Browse files

qa: Ensure wallet unload during walletpassphrase timeout

  • Loading branch information...
promag committed Oct 19, 2018
1 parent 321decf commit 8907df9e02ec47ef249a7422faa766f06aa01e94
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/functional/wallet_multiwallet.py
@@ -8,6 +8,7 @@
"""
import os
import shutil
import time

from test_framework.test_framework import BitcoinTestFramework
from test_framework.test_node import ErrorMatch
@@ -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

0 comments on commit 8907df9

Please sign in to comment.
You can’t perform that action at this time.