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
f2b445f97f
commit
3d6819623e
@ -204,7 +204,7 @@ public class StreamBufferingEncoderTest {
|
|||||||
public void bufferingNewStreamFailsAfterGoAwayReceived() {
|
public void bufferingNewStreamFailsAfterGoAwayReceived() {
|
||||||
encoder.writeSettingsAck(ctx, promise);
|
encoder.writeSettingsAck(ctx, promise);
|
||||||
setMaxConcurrentStreams(0);
|
setMaxConcurrentStreams(0);
|
||||||
connection.goAwayReceived(1, 8, null);
|
connection.goAwayReceived(1, 8, EMPTY_BUFFER);
|
||||||
|
|
||||||
promise = mock(ChannelPromise.class);
|
promise = mock(ChannelPromise.class);
|
||||||
encoderWriteHeaders(3, promise);
|
encoderWriteHeaders(3, promise);
|
||||||
|
Loading…
Reference in New Issue
Block a user