Fix flaky testConnectionRefused
The test can error out due to connection timeout given the we set it
to a small number. The essense of the test is to test a refused
connection instead of timeout.
@@ -282,7 +282,7 @@ public abstract class AbstractHttpClientTest
int port = findUnusedPort();
HttpClientConfig config = createClientConfig();
- config.setConnectTimeout(new Duration(5, MILLISECONDS));
+ config.setConnectTimeout(new Duration(5, SECONDS));
Request request = prepareGet()
.setUri(new URI(scheme, null, host, port, "/", null, null))
