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