SslHandlerTest#testCompositeBufSizeEstimationGuaranteesSynchronousWrite debug info

Motivation:
SslHandlerTest#testCompositeBufSizeEstimationGuaranteesSynchronousWrite has been observed to fail on CI servers. Knowing how many bytes were seen by the client would be helpful.

Modifications:
- Add bytesSeen to the exception if the client closes early.

Result:
More debug info available.
This commit is contained in:
Scott Mitchell 2017-07-05 14:05:35 -04:00
parent c318fc7cea
commit 4d51eca218

View File

@ -693,7 +693,8 @@ public class SslHandlerTest {
@Override @Override
public void channelInactive(ChannelHandlerContext ctx) { public void channelInactive(ChannelHandlerContext ctx) {
donePromise.tryFailure(new IllegalStateException("client closed")); donePromise.tryFailure(new IllegalStateException("client closed. bytesSeen: " +
bytesSeen));
} }
}); });
} }