aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-01-08 13:12:16 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-04-05 11:53:50 +0200
commit331655253ddad5d402896a2031e52008d96569ea (patch)
treea0ab2e653f9a3683e153fa8caa8fed111bef0169
parent6aae129a60d1646018c855c067d830d3086693f6 (diff)
downloadbitcoin-331655253ddad5d402896a2031e52008d96569ea.tar.xz
[qa] Test walletpassphrase timeout
Github-Pull: #7320 Rebased-From: fa1cb1ae15e74e6149ff7fd8aae6cba216914e4c
-rwxr-xr-xqa/rpc-tests/keypool.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/rpc-tests/keypool.py b/qa/rpc-tests/keypool.py
index c300bbc57e..95d0d6832a 100755
--- a/qa/rpc-tests/keypool.py
+++ b/qa/rpc-tests/keypool.py
@@ -70,9 +70,11 @@ class KeyPoolTest(BitcoinTestFramework):
assert(e.error['code']==-12)
# refill keypool with three new addresses
- nodes[0].walletpassphrase('test', 12000)
+ nodes[0].walletpassphrase('test', 1)
nodes[0].keypoolrefill(3)
- nodes[0].walletlock()
+ # test walletpassphrase timeout
+ time.sleep(1.1)
+ assert_equal(nodes[0].getwalletinfo()["unlocked_until"], 0)
# drain them by mining
nodes[0].generate(1)