On Wed, 2 Jun 2021 14:03:57 GMT, Fernando Guallini <fguall...@openjdk.org> wrote:
> The test `SSLSocketImplThrowsWrongExceptions` is failing intermittently after > the change: [JDK-8259662: Don't wrap SocketExceptions into SSLExceptions in > SSLSocketImpl](https://bugs.openjdk.java.net/browse/JDK-8259662) > > Since SocketExceptions are not wrapped into SSLException, also need to be > caught. Other tests that were expecting a SSLException to be thrown under > certain condition were updated with a similar fix in the change previously > mentioned. > > In addition, thread.sleep was replaced with a CountDownLatch for > client/server synchronization Thank you @fguallini for fixing this test. Should the SocketException be expected by the client logic as well? https://github.com/openjdk/jdk/blob/3631a39a4797919acbc7862cb94fa7f7be7f4f8a/test/jdk/sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExceptions.java#L135 ------------- PR: https://git.openjdk.java.net/jdk/pull/4308