Fix resource leak in test introduced by 69070c37ba

This commit is contained in:
Norman Maurer 2016-04-10 08:04:17 +02:00
parent 485f642047
commit fb434de598

View File

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