Every so often our tests fail due to trying to start a listener for a port that is in use.
It's that time between the first listener stopping and the second one starting. Another thread might call GetRandomUnusedPort() in between and get the same port number.
Every so often our tests fail due to trying to start a listener for a port that is in use.
It's that time between the first listener stopping and the second one starting. Another thread might call GetRandomUnusedPort() in between and get the same port number.