HomePhabricator

Fix port collision detection in functional tests

Description

Fix port collision detection in functional tests

Summary: If a port is bound but not listening, cannot bind to it anymore but the test will see the port as closed and let us use that, causing a failure. This diff fixes this potential issue by trying to bind instead of connecting.

Test Plan:

ninja check-functional

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
FabienAuthored on Mar 23 2023, 05:40
FabienPushed on Mar 23 2023, 09:02
Reviewer
Restricted Project
Differential Revision
D13433: Fix port collision detection in functional tests
Parents
rABCb1da6f51e39c: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown