Fix resource leak in test introduced by 69070c37ba

This commit is contained in:
Norman Maurer 2016-04-10 08:04:17 +02:00
parent 6e919f70f8
commit 4652223dec

View File

@ -86,7 +86,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());