0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00

test: assumeutxo: avoid race in functional test

This commit is contained in:
James O'Beirne 2023-10-04 11:05:27 -04:00
parent 7005a01c19
commit 5bd2010f02

View file

@ -142,7 +142,10 @@ class AssumeutxoTest(BitcoinTestFramework):
f"-stopatheight={PAUSE_HEIGHT}", *self.extra_args[1]])
# Finally connect the nodes and let them sync.
self.connect_nodes(0, 1)
#
# Set `wait_for_connect=False` to avoid a race between performing connection
# assertions and the -stopatheight tripping.
self.connect_nodes(0, 1, wait_for_connect=False)
n1.wait_until_stopped(timeout=5)