diff --git a/codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java b/codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java index 843d277447..918c3f704b 100644 --- a/codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java +++ b/codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java @@ -247,17 +247,17 @@ public class Http2ConnectionHandlerTest { public ChannelFuture answer(InvocationOnMock invocation) throws Throwable { Object[] args = invocation.getArguments(); ChannelFutureListener listener = (ChannelFutureListener) args[0]; - // Simulate that all streams have become inactive by the time the future completes + // Simulate that all streams have become inactive by the time the future completes. when(connection.activeStreams()).thenReturn(Collections.emptyList()); when(connection.numActiveStreams()).thenReturn(0); - // Simulate the future being completed + // Simulate the future being completed. listener.operationComplete(future); return future; } }).when(future).addListener(any(GenericFutureListener.class)); handler.close(ctx, promise); handler.closeStream(stream, future); - // Simulate another stream close call being made after the context should already be closed + // Simulate another stream close call being made after the context should already be closed. handler.closeStream(stream, future); verify(ctx, times(1)).close(any(ChannelPromise.class)); }