Skip to content

Commit 58d8f84

Browse files
committed
HADOOP-18596. test fix.
1 parent 0f63b45 commit 58d8f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,11 @@ private void testCommitWithChecksumMismatch(boolean skipCrc)
563563
CopyListingFileStatus sourceCurrStatus =
564564
new CopyListingFileStatus(fs.getFileStatus(sourcePath));
565565
Assert.assertEquals("Checksum should not be equal",
566+
CopyMapper.ChecksumComparison.FALSE,
566567
DistCpUtils.checksumsAreEqual(
567568
fs, new Path(sourceBase + srcFilename), null,
568569
fs, new Path(targetBase + srcFilename),
569-
sourceCurrStatus.getLen()),
570-
CopyMapper.ChecksumComparison.FALSE);
570+
sourceCurrStatus.getLen()));
571571
} catch(IOException exception) {
572572
if (skipCrc) {
573573
LOG.error("Unexpected exception is found", exception);

0 commit comments

Comments
 (0)