From 00d982994c4ee7245af3e86058d4b8218999298a Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 19 Feb 2014 15:19:35 -0800 Subject: [PATCH] Ensure that the last bad chunk is LastHttpChunk --- .../io/netty/handler/codec/http/HttpInvalidMessageTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/test/java/io/netty/handler/codec/http/HttpInvalidMessageTest.java b/codec-http/src/test/java/io/netty/handler/codec/http/HttpInvalidMessageTest.java index caa5f50fe7..5b29c8e83e 100644 --- a/codec-http/src/test/java/io/netty/handler/codec/http/HttpInvalidMessageTest.java +++ b/codec-http/src/test/java/io/netty/handler/codec/http/HttpInvalidMessageTest.java @@ -94,7 +94,7 @@ public class HttpInvalidMessageTest { HttpRequest req = (HttpRequest) ch.readInbound(); assertTrue(req.getDecoderResult().isSuccess()); - HttpContent chunk = (HttpContent) ch.readInbound(); + LastHttpContent chunk = (LastHttpContent) ch.readInbound(); DecoderResult dr = chunk.getDecoderResult(); assertFalse(dr.isSuccess()); assertTrue(dr.isFailure());