diff --git a/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java b/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java index 34b929ac49..5f896b9691 100644 --- a/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java +++ b/codec-stomp/src/test/java/io/netty/handler/codec/stomp/StompSubframeAggregatorTest.java @@ -45,8 +45,8 @@ public class StompSubframeAggregatorTest { incoming.writeBytes(StompTestConstants.CONNECT_FRAME.getBytes()); channel.writeInbound(incoming); - StompHeadersSubframe frame = channel.readInbound(); - Assert.assertTrue(frame instanceof StompFrame); + StompFrame frame = channel.readInbound(); + frame.release(); Assert.assertNull(channel.readInbound()); }