Skip to content

Commit 582ddeb

Browse files
committed
8308545: java/net/httpclient/ShutdownNow.java fails with "stream 1 cancelled"
Reviewed-by: jpai
1 parent 1cfb265 commit 582ddeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/jdk/java/net/httpclient/ShutdownNow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ static boolean hasExpectedMessage(IOException io) {
134134
if (message.equals("closed")) return true;
135135
// exception from selmgr.abort
136136
if (message.equals("shutdownNow")) return true;
137+
// exception from cancelling an HTTP/2 stream
138+
if (message.matches("stream [0-9]+ cancelled")) return true;
137139
return false;
138140
}
139141

0 commit comments

Comments
 (0)