http-client-branch: fix SmokeTest to use the correct client http-client-branch
authorchegar
Mon, 13 Nov 2017 15:48:39 +0000
branchhttp-client-branch
changeset 55807 2337a59be92a
parent 55806 e8bc8370f528
child 55808 59fc0bb89537
http-client-branch: fix SmokeTest to use the correct client
test/jdk/java/net/httpclient/SmokeTest.java
--- a/test/jdk/java/net/httpclient/SmokeTest.java	Mon Nov 13 14:56:09 2017 +0000
+++ b/test/jdk/java/net/httpclient/SmokeTest.java	Mon Nov 13 15:48:39 2017 +0000
@@ -423,7 +423,7 @@
 
         HttpRequest request = HttpRequest.newBuilder(uri).GET().build();
 
-        CompletableFuture<String> fut = client.sendAsync(request, asString())
+        CompletableFuture<String> fut = cl.sendAsync(request, asString())
                 .thenApply((response) -> response.body());
 
         String body = fut.get(5, TimeUnit.HOURS);
@@ -434,7 +434,7 @@
             throw new RuntimeException(
                     "Body mismatch: expected [" + body + "], got [" + fc + "]");
         }
-        if (ps.count() > 1) {
+        if (ps.count() != 1) {
             throw new RuntimeException("CountingProxySelector. Expected 1, got " + ps.count());
         }
         e.shutdownNow();