Skip to content

Commit 5bd2010

Browse files
committed
test: assumeutxo: avoid race in functional test
1 parent 7005a01 commit 5bd2010

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/feature_assumeutxo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ def no_sync():
142142
f"-stopatheight={PAUSE_HEIGHT}", *self.extra_args[1]])
143143

144144
# Finally connect the nodes and let them sync.
145-
self.connect_nodes(0, 1)
145+
#
146+
# Set `wait_for_connect=False` to avoid a race between performing connection
147+
# assertions and the -stopatheight tripping.
148+
self.connect_nodes(0, 1, wait_for_connect=False)
146149

147150
n1.wait_until_stopped(timeout=5)
148151

0 commit comments

Comments
 (0)