snuyanzin commented on code in PR #21368:
URL: https://github.com/apache/flink/pull/21368#discussion_r1031165675
##########
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/channel/ChannelStateChunkReaderTest.java:
##########
@@ -68,27 +81,28 @@ public void testBufferRecycledOnSuccess() throws
IOException, InterruptedExcepti
.readChunk(stream, serializer.getHeaderLength(), handler,
"channelInfo", 0);
} finally {
checkState(!handler.requestedBuffers.isEmpty());
Review Comment:
```suggestion
assertThat(handler.requestedBuffers).isNotEmpty();
```
It seems `checkState` could be replaced with `assertThat` since the latest
gives a better message
--
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]