ferhui commented on a change in pull request #2437:
URL: https://github.com/apache/hadoop/pull/2437#discussion_r518500077
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestAuditLoggerWithCommands.java
##########
@@ -1205,6 +1205,18 @@ public void testGetDatanodeStorageReport() throws
Exception {
}
}
+ @Test
+ public void testDeleteRoot() throws Exception {
+ Path srcDir = new Path("/");
+ fileSys = DFSTestUtil.getFileSystemAs(user1, conf);
+ boolean result = fileSys.delete(srcDir, true);
+ fileSys.close();
+ assertTrue(result == false);
Review comment:
As CI reports, it could be more simple here, assertFalse(result)?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]