-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support parallel servers in tests
In order to add additional integration tests, the Web and RPC servers must run on unique addresses, otherwise trying to create an additional server will fail due to the socket already being in use. This is achieved by selecting the port dynamically, through setting the port as 0 (dynamic port), which `local_addr` then resolves into an the actual port selected, that is, replacing `127.0.0.1:0` with `127.0.0.1:<available_port_that_was_bound_by_TcpListener>`
- Loading branch information
Gilad Chase
committed
Jul 4, 2024
1 parent
0075bb3
commit cba6eb5
Showing
2 changed files
with
23 additions
and
2 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