Skip to content

Commit 8a9f1e4

Browse files
committed
test: fix intermittent failure in rpc_getblockfrompeer.py
by adding a sync to make sure the node has received the header before we query it for the block
1 parent 551c8e9 commit 8a9f1e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/rpc_getblockfrompeer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def run_test(self):
100100
# Connect a P2PInterface to the pruning node and have it submit only the header of the
101101
# block that the pruning node has not seen
102102
node1_interface = self.nodes[1].add_p2p_connection(P2PInterface())
103-
node1_interface.send_message(msg_headers([block]))
103+
node1_interface.send_and_ping(msg_headers([block]))
104104

105105
# Get the peer id of the P2PInterface from the pruning node
106106
node1_peers = self.nodes[1].getpeerinfo()

0 commit comments

Comments
 (0)