Skip to content

Commit d9ab0ff

Browse files
committed
[qa] Fix race condition in example_test.py
1 parent fe00192 commit d9ab0ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/example_test.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,15 @@ def run_test(self):
186186
self.log.info("Connect node2 and node1")
187187
connect_nodes(self.nodes[1], 2)
188188

189+
self.log.info("Wait for node2 to receive all the blocks from node1")
190+
self.sync_all()
191+
189192
self.log.info("Add P2P connection to node2")
190193
self.nodes[0].disconnect_p2ps()
191194

192195
self.nodes[2].add_p2p_connection(BaseNode())
193196

194-
self.log.info("Wait for node2 reach current tip. Test that it has propagated all the blocks to us")
197+
self.log.info("Test that node2 propagates all the blocks to us")
195198

196199
getdata_request = msg_getdata()
197200
for block in blocks:

0 commit comments

Comments
 (0)