pekko
pekko copied to clipboard
chore: Set reuseAddr/port in temporaryServerAddresses
Motivation: refs: https://github.com/apache/pekko/issues/2268
Try to fix this by set reuse address to true.
I'm not sure this is the right fix. While it will avoid the 'bind' error, presumably the test performs the bind because it actually wants to connect to the port. With this change, the bind may succeed, but the connect may connect to the 'wrong' test. In that case the test will still be flaky, but the flakiness will be even harder to understand. I'm not sure that's a net improvement...