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:
parent
7005a01c19
commit
5bd2010f02
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue