Permalink
Browse files

Merge pull request #7320

fa1cb1a [qa] Test walletpassphrase timeout (MarcoFalke)
  • Loading branch information...
laanwj committed Jan 18, 2016
2 parents b8f485c + fa1cb1a commit d3dfc6d7e18e151fb980b4c301368b145ec46442
Showing with 4 additions and 2 deletions.
  1. +4 −2 qa/rpc-tests/keypool.py
View
@@ -70,9 +70,11 @@ def run_test(self):
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)

0 comments on commit d3dfc6d

Please sign in to comment.