Skip to content

Commit 9f35d4d

Browse files
committed
test: fix intermittent timeout in p2p_ibd_stalling.py
by adding a sync, so that we wait until the header message from the previous peer has been received before connecting additional peers.
1 parent c0b7159 commit 9f35d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/p2p_ibd_stalling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run_test(self):
7878
for id in range(NUM_PEERS):
7979
peers.append(node.add_outbound_p2p_connection(P2PStaller(stall_block), p2p_idx=id, connection_type="outbound-full-relay"))
8080
peers[-1].block_store = block_dict
81-
peers[-1].send_without_ping(headers_message)
81+
peers[-1].send_and_ping(headers_message)
8282

8383
# Need to wait until 1023 blocks are received - the magic total bytes number is a workaround in lack of an rpc
8484
# returning the number of downloaded (but not connected) blocks.

0 commit comments

Comments
 (0)