spuru9 commented on code in PR #28497:
URL: https://github.com/apache/flink/pull/28497#discussion_r3465662855


##########
flink-fs-tests/src/test/java/org/apache/flink/hdfstests/ContinuousFileProcessingTest.java:
##########
@@ -339,13 +333,13 @@ public void testReaderSnapshotRestore() throws Exception {
         // compare if the results contain what they should contain and also if
         // they are the same, as they should.
 
-        Assert.assertTrue(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit1)));
-        Assert.assertTrue(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit2)));
-        Assert.assertTrue(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit3)));
-        Assert.assertTrue(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit4)));
+        assertThat(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit1))).isTrue();
+        assertThat(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit2))).isTrue();
+        assertThat(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit3))).isTrue();
+        assertThat(initTestInstance.getOutput().contains(new 
StreamRecord<>(fsSplit4))).isTrue();

Review Comment:
   Boths the tests were designed a little different so I tried .contains 
previously and it failed due to the reason I mentioned previously. 
   Have done done refactoring, should work now. Diff is larger due to some 
structure change in this case.



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