Fix TestDistributedFileSystem.

Change-Id: I96b1cc10371a6a04d026c4bdd2d1f0ff1971714a
This commit is contained in:
Siyao Meng 2021-08-19 17:31:37 -07:00
parent 8ba43d9210
commit fa4dcdcf84
1 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ import org.apache.hadoop.fs.PathOperationException;
import org.apache.hadoop.fs.RemoteIterator;
import org.apache.hadoop.fs.StorageStatistics.LongStatistic;
import org.apache.hadoop.fs.StorageType;
import org.apache.hadoop.fs.contract.ContractTestUtils;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.hdfs.DistributedFileSystem.HdfsDataOutputStreamBuilder;
@ -1783,7 +1784,7 @@ public class TestDistributedFileSystem {
out1.write(contentOrigin);
}
Assertions.verifyFileContents(fs, testFilePath,
ContractTestUtils.verifyFileContents(fs, testFilePath,
content.getBytes());
try (FSDataOutputStream out = fs.createFile(testFilePath).overwrite(false)