Fixing NPE in StreamBufferingEncoderTest
Motivation: The bufferingNewStreamFailsAfterGoAwayReceived method currently causes an NPE. Modifications: Fixed the test so that a valid ByteBuf is passed in. Result: The test no longer throws an NPE.
This commit is contained in:
parent
5fb349ca5a
commit
0d73907c58
@ -204,7 +204,7 @@ public class StreamBufferingEncoderTest {
|
||||
public void bufferingNewStreamFailsAfterGoAwayReceived() {
|
||||
encoder.writeSettingsAck(ctx, promise);
|
||||
setMaxConcurrentStreams(0);
|
||||
connection.goAwayReceived(1, 8, null);
|
||||
connection.goAwayReceived(1, 8, EMPTY_BUFFER);
|
||||
|
||||
promise = mock(ChannelPromise.class);
|
||||
encoderWriteHeaders(3, promise);
|
||||
|
Loading…
Reference in New Issue
Block a user