HTTP/2 shutdown cleanup miss
Motiviation: https://github.com/netty/netty/pull/3865 was merged from a machine with old code. A test case that was updates was not merged. Modifications: - Merge the missing test case updates Result: Test case no longer fails.
This commit is contained in:
parent
49b0d6ed07
commit
5c22a01522
@ -319,6 +319,9 @@ public class Http2ConnectionHandlerTest {
|
||||
}
|
||||
}).when(future).addListener(any(GenericFutureListener.class));
|
||||
handler.close(ctx, promise);
|
||||
if (future.isDone()) {
|
||||
when(connection.numActiveStreams()).thenReturn(0);
|
||||
}
|
||||
handler.closeStream(stream, future);
|
||||
// Simulate another stream close call being made after the context should already be closed.
|
||||
handler.closeStream(stream, future);
|
||||
|
Loading…
Reference in New Issue
Block a user