forked from pact-foundation/pact-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(verifier): acquire HTTP port atomically
Acquire the port in VerifyMessageProvider and VerifyProvider atomically by using the listener used for a free port acquisition for the HTTP server. This prevents a race condition when multiple pact verifiers run in parallel and compete for free ports, which could result in errors like ``` Expected server to start < 10s. Timed out waiting for http verification proxy on port 34425 - check for errors ```
- Loading branch information
Alex Tsibulya
committed
Sep 25, 2023
1 parent
c4aa28e
commit ea6792d
Showing
3 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters