From fb434de5984d339a1b2fe0907f0ac9884e7aff08 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 10 Apr 2016 08:04:17 +0200 Subject: [PATCH] Fix resource leak in test introduced by 69070c37baf55e181f9270270f7cbf25958ba9b3 --- .../io/netty/handler/codec/http/HttpRequestDecoderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java b/codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java index 2bf6fc1f40..9943167e2e 100644 --- a/codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java +++ b/codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java @@ -78,7 +78,7 @@ public class HttpRequestDecoderTest { assertEquals(CONTENT_LENGTH, c.content().readableBytes()); assertEquals( Unpooled.wrappedBuffer(content, content.length - CONTENT_LENGTH, CONTENT_LENGTH), - c.content().readBytes(CONTENT_LENGTH)); + c.content().readSlice(CONTENT_LENGTH)); c.release(); assertFalse(channel.finish());