Fix resource leak in tests introduced by 69070c37ba
.
This commit is contained in:
parent
b80a1a077c
commit
527c07e41b
@ -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' }));
|
||||
|
Loading…
Reference in New Issue
Block a user