chirc
chirc copied to clipboard
Improve port selection algorithm
When randomizing the ports in the tests, a random port is chosen. If that doesn't work, the tests try two more times (with two other random ports). It's unlikely that the tests will choose three busy ports in a row, but it's not beyond the realm of possibility. The tests should explicitly check whether a port is available before choosing it.