[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-net-dev
Subject:    Re: RFR: 8331334: com/sun/net/httpserver/HttpsParametersClientAuthTest.java fails in
From:       Jaikiran Pai <jpai () openjdk ! org>
Date:       2024-05-08 1:14:59
Message-ID: eLPsuNdox_0MwTE3DBzao2164gIfuVQQkrmyIr-tVg8=.4fa44ea8-ea8d-49be-9a8b-a15c5f85ea28 () github ! com
[Download RAW message or body]

On Mon, 6 May 2024 05:36:10 GMT, Jaikiran Pai <jpai@openjdk.org> wrote:

> > Can I get a review of this test-only fix which addresses the intermittent \
> > failrues in `com/sun/net/httpserver/HttpsParametersClientAuthTest.java` on \
> > Windows? 
> > As noted in https://bugs.openjdk.org/browse/JDK-8331334, the test relies on the \
> > TLS communication (of a HTTP request) to fail and then asserts on the exception \
> > types. On Windows, sometimes the exception type differs, although the underlying \
> > failure is the expected failure. 
> > The commit in this PR adds an additional condition to allow for `IOException` to \
> > be thrown when on Windows. The exception type and message check is additionally \
> > only added for Windows and the message check is very specific intentionally, to \
> > make sure we don't allow any `IOException` to result in the test passing. The \
> > usage of the `WSAECONNABORTED_MSG` has a precedent in \
> > `test/jdk/java/net/httpclient/HandshakeFailureTest.java`, so I think that should \
> > be OK in this test too. 
> > With these changes the test hasn't failed in a test repeat of 100. Without the \
> > changes, the test fails around 15 times in a test repeat of 100. Additionally \
> > tier1, tier2 and tier3 tests have been run with this change and those tests \
> > continue to pass.
> 
> Jaikiran Pai has updated the pull request incrementally with one additional commit \
> since the last revision: 
> don't check for exception message (which can be localized)

Thank you Daniel for the review.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19091#issuecomment-2099548482


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic