diff options
author | James O'Beirne <james.obeirne@pm.me> | 2023-10-04 11:05:27 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-10-04 11:05:27 -0400 |
commit | 5bd2010f024b5bcccf1d57bae6fc36c53f5facc5 (patch) | |
tree | d5e27aaa00d73712d8742da4dd1bf263e76c159d /test | |
parent | 7005a01c19001ab5821731597656f8bc5e8c11e3 (diff) | |
download | bitcoin-5bd2010f024b5bcccf1d57bae6fc36c53f5facc5.tar.xz |
test: assumeutxo: avoid race in functional test
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_assumeutxo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py index be1aa18993..4d0552f332 100755 --- a/test/functional/feature_assumeutxo.py +++ b/test/functional/feature_assumeutxo.py @@ -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) |