HomePhabricator

Fix a race in the net tests

Description

Fix a race in the net tests

Summary: There is a possible race that can occur when looping over the nodes while the opening connection thread is running. This can be fixed by joining the thread before running the check.

Test Plan: Run the tsan build.

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D11833

Details

Provenance
FabienAuthored on Aug 8 2022, 08:11
FabienPushed on Aug 8 2022, 15:55
Reviewer
Restricted Project
Differential Revision
D11833: Fix a race in the net tests
Parents
rABCd1356c9f2cf2: [avalanche] Fix abc_p2p_getavaaddr flakiness
Branches
Unknown
Tags
Unknown