HADOOP-16971. TestFileContextResolveAfs#testFileContextResolveAfs creates dangling link and fails for subsequent runs. Contributed by Ctest.
This commit is contained in:
parent
1824aee9da
commit
79e03fb622
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue