1996fanrui commented on code in PR #21368: URL: https://github.com/apache/flink/pull/21368#discussion_r1038195124
########## flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/channel/ChannelStateWriterImplTest.java: ########## @@ -36,52 +35,49 @@ import static org.apache.flink.runtime.state.ChannelPersistenceITCase.getStreamFactoryFactory; import static org.apache.flink.util.CloseableIterator.ofElements; -import static org.apache.flink.util.ExceptionUtils.findThrowable; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; /** {@link ChannelStateWriterImpl} lifecycle tests. */ -public class ChannelStateWriterImplTest { +class ChannelStateWriterImplTest { Review Comment: After tried, I found we cannot change it. Sometimes, `testFn` calls the ` worker.processAllRequests()`, and ` worker.processAllRequests()` won't throw exception, so `testFn` cannot be changed from `BiConsumerWithException` to `BiConsumer`. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org