RFR: 8299325: java/net/httpclient/CancelRequestTest.java fails "test CancelRequestTest.testGetSendAsync("https://localhost:46509/https1/x/same/interrupt", true, true)" [v2]
Daniel Fuchs
dfuchs at openjdk.org
Mon Jan 30 14:45:58 UTC 2023
On Mon, 30 Jan 2023 14:42:20 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> The CancelRequestTest has been observed failing (rare and intermittent, but at least twice) in our CI.
>> This fix increases the timeout waiting for resources to be released after cancelling the request, and add more diagnosis to the test code.
>
> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>
> Update test/jdk/java/net/httpclient/CancelRequestTest.java
test/jdk/java/net/httpclient/CancelRequestTest.java line 369:
> 367: }
> 368: }
> 369: if (!IOException.class.isAssignableFrom(cause.getClass())) {
Thanks Jaikiran. Good suggestion!
Suggestion:
if (!IOException.class.isInstance(cause)) {
-------------
PR: https://git.openjdk.org/jdk/pull/12233
More information about the net-dev
mailing list