Skip to content

Commit faca373

Browse files
author
MarcoFalke
committed
test: Fix intermittent issue in wallet_import_rescan
1 parent 80c8a02 commit faca373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/wallet_import_rescan.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def run_test(self):
182182
self.nodes[0].generate(1) # Generate one block for each send
183183
variant.confirmation_height = self.nodes[0].getblockcount()
184184
variant.timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
185+
self.sync_all() # Conclude sync before calling setmocktime to avoid timeouts
185186

186187
# Generate a block further in the future (past the rescan window).
187188
assert_equal(self.nodes[0].getrawmempool(), [])

0 commit comments

Comments
 (0)