http-client-branch: DigestEchoClient test should explicitely set NO_PROXY when testing without proxy http-client-branch
authordfuchs
Fri, 13 Apr 2018 14:54:02 +0100
branchhttp-client-branch
changeset 56424 c6fe988dca4c
parent 56423 ba64c30666cc
child 56425 9236d0fb75b9
http-client-branch: DigestEchoClient test should explicitely set NO_PROXY when testing without proxy
test/jdk/java/net/httpclient/DigestEchoClient.java
--- a/test/jdk/java/net/httpclient/DigestEchoClient.java	Fri Apr 13 10:49:17 2018 +0100
+++ b/test/jdk/java/net/httpclient/DigestEchoClient.java	Fri Apr 13 14:54:02 2018 +0100
@@ -193,6 +193,7 @@
     public HttpClient newHttpClient(DigestEchoServer server) {
         clientCount.incrementAndGet();
         HttpClient.Builder builder = HttpClient.newBuilder();
+        builder = builder.proxy(ProxySelector.of(null));
         if (useSSL) {
             builder.sslContext(context);
         }