--- 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();