HADOOP-16971. TestFileContextResolveAfs#testFileContextResolveAfs creates dangling link and fails for subsequent runs. Contributed by Ctest.

This commit is contained in:
Ayush Saxena 2020-04-20 01:59:18 +05:30
parent 1824aee9da
commit 79e03fb622
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ public class TestFileContextResolveAfs {
fc.createSymlink(localPath, linkPath, true);
Set<AbstractFileSystem> afsList = fc.resolveAbstractFileSystems(linkPath);
Assert.assertEquals(1, afsList.size());
localFs.deleteOnExit(localPath);
localFs.deleteOnExit(linkPath);
localFs.delete(linkPath, true);
localFs.delete(localPath, true);
localFs.close();
}
}