Skip to content

Commit 8469afe

Browse files
jamesobfurszy
authored andcommitted
test: forward timeouts properly in send_blocks_and_test
1 parent db28a53 commit 8469afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/mininode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,9 @@ def send_blocks_and_test(self, blocks, node, success=True, reject_reason=None, e
466466
self.send_message(msg_block(blocks[-1]))
467467

468468
if expect_disconnect:
469-
self.wait_for_disconnect()
469+
self.wait_for_disconnect(timeout=timeout)
470470
else:
471-
self.sync_with_ping()
471+
self.sync_with_ping(timeout=timeout)
472472

473473
if success:
474474
wait_until(lambda: node.getbestblockhash() == blocks[-1].hash, timeout=timeout)

0 commit comments

Comments
 (0)