aboutsummaryrefslogtreecommitdiff
path: root/test/functional/zapwallettxes.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2017-09-12 17:20:26 +0200
committerMarcoFalke <falke.marco@gmail.com>2017-10-03 22:03:08 +0200
commit2e1ac70df97be758a2a9869104a81cb454008174 (patch)
tree38b8dc9442eb37a6ad1660f4e8f38b120c54b77c /test/functional/zapwallettxes.py
parentb6468d3c420f73627956fc94c9743d26d75af8b0 (diff)
downloadbitcoin-2e1ac70df97be758a2a9869104a81cb454008174.tar.xz
[qa] zapwallettxes: Wait up to 3s for mempool reload
Github-Pull: #11308 Rebased-From: fadd0c16b6bd62e9d663d906755320ae089e02d3
Diffstat (limited to 'test/functional/zapwallettxes.py')
-rwxr-xr-xtest/functional/zapwallettxes.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/zapwallettxes.py b/test/functional/zapwallettxes.py
index c001517a6d..83b11035c8 100755
--- a/test/functional/zapwallettxes.py
+++ b/test/functional/zapwallettxes.py
@@ -15,9 +15,11 @@
been zapped.
"""
from test_framework.test_framework import BitcoinTestFramework
-from test_framework.util import (assert_equal,
- assert_raises_jsonrpc,
- )
+from test_framework.util import (
+ assert_equal,
+ assert_raises_jsonrpc,
+ wait_until,
+)
class ZapWalletTXesTest (BitcoinTestFramework):
def set_test_params(self):
@@ -56,6 +58,8 @@ class ZapWalletTXesTest (BitcoinTestFramework):
self.stop_node(0)
self.start_node(0, ["-persistmempool=1", "-zapwallettxes=2"])
+ wait_until(lambda: self.nodes[0].getmempoolinfo()['size'] == 1, timeout=3)
+
assert_equal(self.nodes[0].gettransaction(txid1)['txid'], txid1)
assert_equal(self.nodes[0].gettransaction(txid2)['txid'], txid2)