Fix intermittent test failure

ServerSocket.getLocalSocketAddress() can take over a second to run, causing testConnectTimeout() to incorrectly fail.