Fix resource leak in test introduced by 69070c37ba
This commit is contained in:
parent
485f642047
commit
fb434de598
@ -78,7 +78,7 @@ public class HttpRequestDecoderTest {
|
|||||||
assertEquals(CONTENT_LENGTH, c.content().readableBytes());
|
assertEquals(CONTENT_LENGTH, c.content().readableBytes());
|
||||||
assertEquals(
|
assertEquals(
|
||||||
Unpooled.wrappedBuffer(content, content.length - CONTENT_LENGTH, CONTENT_LENGTH),
|
Unpooled.wrappedBuffer(content, content.length - CONTENT_LENGTH, CONTENT_LENGTH),
|
||||||
c.content().readBytes(CONTENT_LENGTH));
|
c.content().readSlice(CONTENT_LENGTH));
|
||||||
c.release();
|
c.release();
|
||||||
|
|
||||||
assertFalse(channel.finish());
|
assertFalse(channel.finish());
|
||||||
|
Loading…
Reference in New Issue
Block a user