Fixed a problem where AbstractSocketSslEchoTest doesn't close all channels when handshake fails.
This commit is contained in:
parent
5df6229d2a
commit
feac0d6a3d
|
@ -155,6 +155,9 @@ public abstract class AbstractSocketSslEchoTest {
|
||||||
hf.awaitUninterruptibly();
|
hf.awaitUninterruptibly();
|
||||||
if (!hf.isSuccess()) {
|
if (!hf.isSuccess()) {
|
||||||
logger.error("Handshake failed", hf.getCause());
|
logger.error("Handshake failed", hf.getCause());
|
||||||
|
sh.channel.close().awaitUninterruptibly();
|
||||||
|
ch.channel.close().awaitUninterruptibly();
|
||||||
|
sc.close().awaitUninterruptibly();
|
||||||
}
|
}
|
||||||
|
|
||||||
assertTrue(hf.isSuccess());
|
assertTrue(hf.isSuccess());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user