Fix resource leak in tests introduced by 69070c37ba.

This commit is contained in:
Norman Maurer 2016-04-14 10:13:55 +02:00
parent b80a1a077c
commit 527c07e41b

View File

@ -43,7 +43,7 @@ public class ReplayingDecoderTest {
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 'C' }));
assertNull(ch.readInbound());
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { '\n' }));
assertEquals(Unpooled.wrappedBuffer(new byte[] { 'A', 'B', 'C' }), ch.readInbound());
assertEquals(Unpooled.wrappedBuffer(new byte[] { 'A', 'B', 'C' }), releaseLater(ch.readInbound()));
// Truncated input
ch.writeInbound(Unpooled.wrappedBuffer(new byte[] { 'A' }));