TestGlobPath symlink tests fail to cleanup properly. (cmccabe via wang)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1513251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Wang 2013-08-12 20:44:23 +00:00
parent dedbd19bea
commit d748123e2c
2 changed files with 6 additions and 2 deletions

View File

@ -120,6 +120,9 @@ Trunk (Unreleased)
HDFS-5004. Add additional JMX bean for NameNode status data
(Trevor Lorimer via cos)
HDFS-9847. TestGlobPath symlink tests fail to cleanup properly.
(cmccabe via wang)
OPTIMIZATIONS
BUG FIXES

View File

@ -405,6 +405,8 @@ public class TestGlobPaths {
status = fs.globStatus(new Path("/x/x"), falseFilter);
assertNull(status);
cleanupDFS();
}
private void checkStatus(FileStatus[] status, Path ... expectedMatches) {
@ -783,8 +785,7 @@ public class TestGlobPaths {
return globResults;
}
@After
public void cleanupDFS() throws IOException {
private void cleanupDFS() throws IOException {
fs.delete(new Path(USER_DIR), true);
}