--- a/test/jdk/java/net/httpclient/websocket/WSHandshakeExceptionTest.java Wed May 02 10:47:16 2018 +0200
+++ b/test/jdk/java/net/httpclient/websocket/WSHandshakeExceptionTest.java Wed May 02 02:36:17 2018 -0700
@@ -51,6 +51,8 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
+
+import static java.net.http.HttpClient.Builder.NO_PROXY;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.fail;
@@ -79,6 +81,7 @@
HttpClient newHttpClient() {
return HttpClient.newBuilder()
+ .proxy(NO_PROXY)
.executor(executor)
.sslContext(sslContext)
.build();