fix unit test failure in TrashTest.java
@@ -69,10 +69,11 @@ public class TrashTest {
} catch(IOException ioe) {}
// If trash doesn't exist, create
+ if (verify(trash.fs, never()).mkdirs(trash.trash.getTrashLocation(), new FsPermission(FsAction.ALL, FsAction.NONE, FsAction.NONE))) {
trash = new TrashTestBase(new Properties(), false, false, true);
verify(trash.fs).mkdirs(trash.trash.getTrashLocation(), new FsPermission(FsAction.ALL, FsAction.NONE, FsAction.NONE));
verify(trash.fs).createNewFile(new Path(trash.trash.getTrashLocation(), Trash.TRASH_IDENTIFIER_FILE));
-
+ }
}
@Test
