Additional debug information in AbstractSocketSslEchoTest
This commit is contained in:
parent
7896ec05f6
commit
b3f39c1bb3
@ -149,8 +149,13 @@ public abstract class AbstractSocketSslEchoTest {
|
|||||||
Channel cc = ccf.getChannel();
|
Channel cc = ccf.getChannel();
|
||||||
ChannelFuture hf = cc.getPipeline().get(SslHandler.class).handshake(cc);
|
ChannelFuture hf = cc.getPipeline().get(SslHandler.class).handshake(cc);
|
||||||
hf.awaitUninterruptibly();
|
hf.awaitUninterruptibly();
|
||||||
if (!hf.isSuccess() && ch.exception.get() != null) {
|
if (!hf.isSuccess()) {
|
||||||
ch.exception.get().printStackTrace();
|
System.out.println("Handshake failed:");
|
||||||
|
hf.getCause().printStackTrace(System.out);
|
||||||
|
if (ch.exception.get() != null) {
|
||||||
|
System.out.println("Exception recorded by ChannelHandler:");
|
||||||
|
ch.exception.get().printStackTrace(System.out);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assertTrue(hf.isSuccess());
|
assertTrue(hf.isSuccess());
|
||||||
|
Loading…
Reference in New Issue
Block a user