Ensure that the last bad chunk is LastHttpChunk

This commit is contained in:
Trustin Lee 2014-02-19 15:19:35 -08:00
parent b1f27d9aa8
commit 396a81c811

View File

@ -94,7 +94,7 @@ public class HttpInvalidMessageTest {
HttpRequest req = ch.readInbound();
assertTrue(req.getDecoderResult().isSuccess());
HttpContent chunk = ch.readInbound();
LastHttpContent chunk = ch.readInbound();
DecoderResult dr = chunk.getDecoderResult();
assertFalse(dr.isSuccess());
assertTrue(dr.isFailure());