reswqa commented on code in PR #19946:
URL: https://github.com/apache/flink/pull/19946#discussion_r896438515
##########
flink-core/src/test/java/org/apache/flink/api/common/io/BinaryInputFormatTest.java:
##########
@@ -73,13 +76,21 @@ public void testCreateInputSplitsWithOneFile() throws
IOException {
FileInputSplit[] inputSplits =
inputFormat.createInputSplits(numBlocks);
- Assert.assertEquals("Returns requested numbers of splits.", numBlocks,
inputSplits.length);
- Assert.assertEquals(
- "1. split has block size length.", blockSize,
inputSplits[0].getLength());
- Assert.assertEquals(
- "2. split has block size length.", blockSize,
inputSplits[1].getLength());
- Assert.assertEquals(
- "3. split has block size length.", blockSize,
inputSplits[2].getLength());
+ assertThat(inputSplits.length)
Review Comment:
The same problem of other tests also needs to be modified
--
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]