Fix a resource leak in StompSubframeAggregatorTest
This commit is contained in:
parent
f7e183f8e4
commit
59cf8ffcb4
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user