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:
nmittler 2015-07-20 12:44:52 -07:00
parent 5fb349ca5a
commit 0d73907c58

View File

@ -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);