-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Avoid getport race conditions when starting anvil (#11077)
Our test suite uses `startAnvil` all over the place to start an anvil instance in the background. This was using `get-port`, which was subject to race conditions when checking for port availability if we ran multiple tests in parallel. This PR removes `get-port` and instead uses port zero to ask the OS to allocate a port for us, which should be free of race conditions (see [this SO answer](https://unix.stackexchange.com/a/55918)).
- Loading branch information
1 parent
649b590
commit b73f7f9
Showing
3 changed files
with
26 additions
and
9 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