From 4d51eca21828a100a583769a7ec8c266892cd9f1 Mon Sep 17 00:00:00 2001 From: Scott Mitchell Date: Wed, 5 Jul 2017 14:05:35 -0400 Subject: [PATCH] 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. --- handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java b/handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java index 30451185f3..5ef43de248 100644 --- a/handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java +++ b/handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java @@ -693,7 +693,8 @@ public class SslHandlerTest { @Override public void channelInactive(ChannelHandlerContext ctx) { - donePromise.tryFailure(new IllegalStateException("client closed")); + donePromise.tryFailure(new IllegalStateException("client closed. bytesSeen: " + + bytesSeen)); } }); }