# HG changeset patch # User chegar # Date 1510588119 0 # Node ID 2337a59be92a714666ee0e02815d24371ded73f8 # Parent e8bc8370f52893472e84ba9ac0cab5411a390ec9 http-client-branch: fix SmokeTest to use the correct client diff -r e8bc8370f528 -r 2337a59be92a 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 fut = client.sendAsync(request, asString()) + CompletableFuture 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();