|
18 | 18 |
|
19 | 19 | package io.undertow.client.http;
|
20 | 20 |
|
21 |
| -import java.io.IOException; |
22 |
| -import java.net.Inet6Address; |
23 |
| -import java.net.InetAddress; |
24 |
| -import java.net.URI; |
25 |
| -import java.net.URISyntaxException; |
26 |
| -import java.nio.ByteBuffer; |
27 |
| -import java.nio.channels.ClosedChannelException; |
28 |
| -import java.util.List; |
29 |
| -import java.util.concurrent.CopyOnWriteArrayList; |
30 |
| -import java.util.concurrent.CountDownLatch; |
31 |
| -import java.util.concurrent.TimeUnit; |
32 |
| - |
33 |
| -import javax.net.ssl.SSLContext; |
34 |
| - |
35 | 21 | import io.undertow.client.ClientCallback;
|
36 | 22 | import io.undertow.client.ClientConnection;
|
37 | 23 | import io.undertow.client.ClientExchange;
|
|
67 | 53 | import org.xnio.channels.StreamSinkChannel;
|
68 | 54 | import org.xnio.ssl.XnioSsl;
|
69 | 55 |
|
| 56 | +import javax.net.ssl.SSLContext; |
| 57 | +import java.io.IOException; |
| 58 | +import java.net.Inet6Address; |
| 59 | +import java.net.InetAddress; |
| 60 | +import java.net.URI; |
| 61 | +import java.net.URISyntaxException; |
| 62 | +import java.nio.ByteBuffer; |
| 63 | +import java.util.List; |
| 64 | +import java.util.concurrent.CopyOnWriteArrayList; |
| 65 | +import java.util.concurrent.CountDownLatch; |
| 66 | +import java.util.concurrent.TimeUnit; |
| 67 | + |
70 | 68 | import static io.undertow.testutils.StopServerWithExternalWorkerUtils.stopWorker;
|
71 | 69 |
|
72 | 70 | /**
|
@@ -362,7 +360,8 @@ public void testSslServerIdentity() throws Exception {
|
362 | 360 | latch.await(10, TimeUnit.SECONDS);
|
363 | 361 |
|
364 | 362 | Assert.assertEquals(0, responses.size());
|
365 |
| - Assert.assertTrue(exception instanceof ClosedChannelException); |
| 363 | + // see UNDERTOW-2249: assert exception instanceof ClosedChannelException |
| 364 | + Assert.assertNotNull(exception); |
366 | 365 | } finally {
|
367 | 366 | connection.getIoThread().execute(() -> IoUtils.safeClose(connection));
|
368 | 367 | DefaultServer.stopSSLServer();
|
|
0 commit comments