HDFS-15632. AbstractContractDeleteTest should set recursive peremeter to true for recursive test cases. Contributed by Anton Kutuzov.

This commit is contained in:
Anton Kutuzov 2021-01-20 18:38:02 +03:00 committed by Konstantin V Shvachko
parent d09e3c929f
commit 91d4ba57c5

View File

@ -49,18 +49,17 @@ public void testDeleteNonexistentPathRecursive() throws Throwable {
Path path = path("testDeleteNonexistentPathRecursive");
assertPathDoesNotExist("leftover", path);
ContractTestUtils.rejectRootOperation(path);
assertFalse("Returned true attempting to delete"
assertFalse("Returned true attempting to recursively delete"
+ " a nonexistent path " + path,
getFileSystem().delete(path, false));
getFileSystem().delete(path, true));
}
@Test
public void testDeleteNonexistentPathNonRecursive() throws Throwable {
Path path = path("testDeleteNonexistentPathNonRecursive");
assertPathDoesNotExist("leftover", path);
ContractTestUtils.rejectRootOperation(path);
assertFalse("Returned true attempting to recursively delete"
assertFalse("Returned true attempting to non recursively delete"
+ " a nonexistent path " + path,
getFileSystem().delete(path, false));
}