Fix TestSaslDataTransfer.

Change-Id: Ia54a79c4a0058c2fa280f55b3080a9fa7a3046a0
This commit is contained in:
Siyao Meng 2021-08-19 22:31:32 -07:00
parent 9ad0317212
commit d90c32005c

View File

@ -198,7 +198,7 @@ public void testNoSaslAndSecurePortsIgnored() throws Exception {
private void doTest(HdfsConfiguration conf) throws IOException {
fs = FileSystem.get(cluster.getURI(), conf);
FileSystemTestHelper.createFile(fs, PATH, NUM_BLOCKS, BLOCK_SIZE);
assertArrayEquals(FileSystemTestHelper.getFileData(NUM_BLOCKS, BLOCK_SIZE),
assertEquals(FileSystemTestHelper.getFileData(NUM_BLOCKS, BLOCK_SIZE),
DFSTestUtil.readFile(fs, PATH).getBytes("UTF-8"));
BlockLocation[] blockLocations = fs.getFileBlockLocations(PATH, 0,
Long.MAX_VALUE);