majialoong commented on code in PR #23406:
URL: https://github.com/apache/kafka/pull/23406#discussion_r3960197293
##########
streams/src/test/java/org/apache/kafka/streams/state/internals/OffsetCheckpointTest.java:
##########
@@ -96,13 +92,13 @@ public void shouldDeleteExistingCheckpointWhenNoOffsets()
throws IOException {
checkpoint.write(offsets);
- assertThat(file.exists(), is(true));
- assertThat(offsets, is(checkpoint.read()));
+ assertTrue(file.exists());
+ assertEquals(offsets, checkpoint.read());
Review Comment:
The `offsets` written to the checkpoint should be the expected value, and
`checkpoint.read()` should provide the actual value.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]