Skip to content

Commit d9d9a29

Browse files
author
MarcoFalke
committed
Merge #20179: test: Fix intermittent issue in wallet_import_rescan
faab86f test: Fix intermittent issue in wallet_send (MarcoFalke) faca373 test: Fix intermittent issue in wallet_import_rescan (MarcoFalke) Pull request description: Fixes the issue ``` node2 2020-10-16T14:26:28.699593Z (mocktime: 2020-10-16T16:26:46Z) [msghand] Timeout downloading block 1131f0318b913e078402524f1e63e53d52171844dd8246a03b970e540cb56924 from peer=0, disconnecting ACKs for top commit: fjahr: utACK faab86f Tree-SHA512: 739e8ad488c50e6beae676fb6cb021033cca6192da4acb4512c182bd8843f2f42a4a07474118285cb1d91798904433e4abb09476cc9ce115aae87ce64db69eaf
2 parents 152ddb3 + faab86f commit d9d9a29

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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(), [])

test/functional/wallet_send.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ def run_test(self):
316316
res = self.nodes[0].sendrawtransaction(hex)
317317
self.nodes[0].generate(1)
318318
assert_equal(self.nodes[0].gettransaction(txid)["confirmations"], 1)
319+
self.sync_all()
319320

320321
self.log.info("Lock unspents...")
321322
utxo1 = w0.listunspent()[0]

0 commit comments

Comments
 (0)