Skip to content

Commit

Permalink
[UNDERTOW-2212] At the HttpClientTestCase.testSslServerIdentity test,…
Browse files Browse the repository at this point in the history
… do not enforce the exception to be of type ClosedChannelException (see UNDERTOW-2249).

Signed-off-by: Flavia Rainone <frainone@redhat.com>
  • Loading branch information
fl4via committed Mar 24, 2023
1 parent b1bd733 commit f6975f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ public void testSslServerIdentity() throws Exception {
latch.await(10, TimeUnit.SECONDS);

Assert.assertEquals(0, responses.size());
Assert.assertTrue(exception instanceof ClosedChannelException);
// see UNDERTOW-2249: assert exception instanceof ClosedChannelException
Assert.assertNotNull(exception);
} finally {
connection.getIoThread().execute(() -> IoUtils.safeClose(connection));
DefaultServer.stopSSLServer();
Expand Down

0 comments on commit f6975f2

Please sign in to comment.