alpreu commented on code in PR #19660:
URL: https://github.com/apache/flink/pull/19660#discussion_r876807509


##########
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaProducerBaseTest.java:
##########
@@ -202,13 +204,13 @@ public void testAsyncErrorRethrownOnCheckpoint() throws 
Throwable {
             testHarness.snapshot(123L, 123L);
         } catch (Exception e) {
             // the next invoke should rethrow the async exception
-            Assert.assertTrue(e.getCause().getMessage().contains("artificial 
async exception"));
+            assertThat(e.getCause().getMessage()).contains("artificial async 
exception");

Review Comment:
   I left it as is for now as we discussed offline to not touch the tests for 
deprecated components



##########
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaProducerBaseTest.java:
##########
@@ -266,14 +268,14 @@ public void go() throws Exception {
             snapshotThread.sync();
         } catch (Exception e) {
             // the snapshot should have failed with the async exception
-            Assert.assertTrue(
-                    e.getCause().getMessage().contains("artificial async 
failure for 2nd message"));
+            assertThat(e.getCause().getMessage())

Review Comment:
   I left it as is for now as we discussed offline to not touch the tests for 
deprecated components



-- 
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]

Reply via email to