This looks good to me Chris!

best regards,

-- daniel

On 17/03/2019 08:53, Chris Hegarty wrote:
This review is for a test only change. It resolves a rare intermittent
failure.

The issue is that the test creates, retrieves the local port, and
immediately closes a server socket. It then expects this port to refuse
subsequent connections. This is an anti-pattern, since on a busy machine
the port may be reused ( and subsequently accept future connections ),
before this test attempts to connect.

The solution is to use the test library `Utils::refusingEndpoint` to
retrieve a local address that will refuse connections.

http://cr.openjdk.java.net/~chegar/8170705/

-Chris.


Reply via email to