Skip to content

Commit 699fc26

Browse files
committed
✅ Release buffer in unit test of ProtocolizedBuiltPacketImpl
1 parent 4c6ba45 commit 699fc26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/test/java/net/transferproxy/network/packet/built/ProtocolizedBuiltPacketImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void testBufferIsCorrectlyCached() {
8787

8888
for (int i = 0; i < 20; i++) {
8989
final int protocol = i;
90-
assertDoesNotThrow(() -> builtPacket.get(allocator, protocol));
90+
assertDoesNotThrow(() -> builtPacket.get(allocator, protocol)).release();
9191
}
9292

9393
verify(builtPacket, times(3)).compute(anyInt(), anyInt());

0 commit comments

Comments
 (0)