From f6975f2d5e6afb993d150d708f9cc1c37aa06f94 Mon Sep 17 00:00:00 2001 From: Flavia Rainone Date: Fri, 24 Mar 2023 17:22:29 -0300 Subject: [PATCH] [UNDERTOW-2212] At the HttpClientTestCase.testSslServerIdentity test, do not enforce the exception to be of type ClosedChannelException (see UNDERTOW-2249). Signed-off-by: Flavia Rainone --- .../test/java/io/undertow/client/http/HttpClientTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/io/undertow/client/http/HttpClientTestCase.java b/core/src/test/java/io/undertow/client/http/HttpClientTestCase.java index c3cec40753..1bdc89a6a4 100644 --- a/core/src/test/java/io/undertow/client/http/HttpClientTestCase.java +++ b/core/src/test/java/io/undertow/client/http/HttpClientTestCase.java @@ -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();