diff -r 8e8423347c1e -r a0929d5dd63f test/jdk/java/net/httpclient/ThrowingSubscribers.java --- a/test/jdk/java/net/httpclient/ThrowingSubscribers.java Fri Apr 06 18:15:35 2018 +0100 +++ b/test/jdk/java/net/httpclient/ThrowingSubscribers.java Fri Apr 06 22:11:44 2018 +0100 @@ -453,7 +453,6 @@ final List checkAsLines(Where w, HttpResponse> resp, Thrower thrower) { switch(w) { case BODY_HANDLER: return shouldHaveThrown(w, resp, thrower); - case ON_SUBSCRIBE: return shouldHaveThrown(w, resp, thrower); case GET_BODY: return shouldHaveThrown(w, resp, thrower); case BODY_CF: return shouldHaveThrown(w, resp, thrower); default: break; @@ -469,7 +468,7 @@ } throw causeNotFound(w, x); } - throw new RuntimeException("Expected exception not thrown in " + w); + return shouldHaveThrown(w, resp, thrower); } final List checkAsInputStream(Where w, HttpResponse resp, @@ -478,7 +477,6 @@ { switch(w) { case BODY_HANDLER: return shouldHaveThrown(w, resp, thrower); - case ON_SUBSCRIBE: return shouldHaveThrown(w, resp, thrower); case GET_BODY: return shouldHaveThrown(w, resp, thrower); case BODY_CF: return shouldHaveThrown(w, resp, thrower); default: break;