aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_multiwallet.py
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-10-19 23:10:49 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-10-20 11:02:35 +0100
commit8907df9e02ec47ef249a7422faa766f06aa01e94 (patch)
tree8c449ebc353097fcf754580c9664459829fde7e4 /test/functional/wallet_multiwallet.py
parent321decffa1fbf213462d97e5372bd0c4eeb99635 (diff)
downloadbitcoin-8907df9e02ec47ef249a7422faa766f06aa01e94.tar.xz
qa: Ensure wallet unload during walletpassphrase timeout
Diffstat (limited to 'test/functional/wallet_multiwallet.py')
-rwxr-xr-xtest/functional/wallet_multiwallet.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py
index 189bc2d50e..af6c34e854 100755
--- a/test/functional/wallet_multiwallet.py
+++ b/test/functional/wallet_multiwallet.py
@@ -8,6 +8,7 @@ Verify that a bitcoind node can load multiple wallet files
"""
import os
import shutil
+import time
from test_framework.test_framework import BitcoinTestFramework
from test_framework.test_node import ErrorMatch
@@ -267,7 +268,11 @@ class MultiWalletTest(BitcoinTestFramework):
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