aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-10-18 10:13:07 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-10-18 10:10:20 +0200
commitfaca3734c00ffaf2be7bd555fbfa2887ba28c811 (patch)
tree6b25cfd884fa09e5ca394e8c1c1bec9e2c3e985e
parent80c8a02f1b4f6ad2b5c02595d66a74db22373ed4 (diff)
test: Fix intermittent issue in wallet_import_rescan
-rwxr-xr-xtest/functional/wallet_import_rescan.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/wallet_import_rescan.py b/test/functional/wallet_import_rescan.py
index 9d532742ee..f491a69d99 100755
--- a/test/functional/wallet_import_rescan.py
+++ b/test/functional/wallet_import_rescan.py
@@ -182,6 +182,7 @@ class ImportRescanTest(BitcoinTestFramework):
self.nodes[0].generate(1) # Generate one block for each send
variant.confirmation_height = self.nodes[0].getblockcount()
variant.timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
+ self.sync_all() # Conclude sync before calling setmocktime to avoid timeouts
# Generate a block further in the future (past the rescan window).
assert_equal(self.nodes[0].getrawmempool(), [])