Additional debug information in AbstractSocketSslEchoTest

This commit is contained in:
Trustin Lee 2008-11-16 10:33:00 +00:00
parent 7896ec05f6
commit b3f39c1bb3

View File

@ -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());