Skip to content

Commit

Permalink
Resolve a LEAK warning in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cty123 authored and mp911de committed Apr 8, 2024
1 parent eb559fe commit 8004878
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ void dataRow() {
.writeShort(1)
.writeInt(4)
.writeInt(100));
assertThat(message).isEqualTo(new DataRow(TEST.buffer(4).writeInt(100)));
DataRow expectedMessage = new DataRow(TEST.buffer(4).writeInt(100));
assertThat(message).isEqualTo(expectedMessage);
message.release();
expectedMessage.release();
}

@Test
Expand Down

0 comments on commit 8004878

Please sign in to comment.