Skip to content

Commit 0b9c4ad

Browse files
committed
🩹 Release buffer in unit test of ProtocolizedBuiltPacketImpl
1 parent 47eb133 commit 0b9c4ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ record Entry(int protocol, int expected) {
7373
final DummyTestPacket packet = assertDoesNotThrow(() -> new DummyTestPacket(buf));
7474
assertEquals("test data", packet.data());
7575
assertEquals(entry.expected, packet.protocol());
76+
77+
buf.release();
7678
}
7779
// @formatter:on
7880
}

0 commit comments

Comments
 (0)