jojochuang commented on code in PR #4720:
URL: https://github.com/apache/ozone/pull/4720#discussion_r1205847817
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileSystem.java:
##########
@@ -1752,4 +1752,20 @@ public void testFileSystemDeclaresCapability() throws
Throwable {
assertHasPathCapabilities(fs, root, FS_ACLS);
assertHasPathCapabilities(fs, root, FS_CHECKSUMS);
}
+
+ @Test
+ public void testSetTimes() throws Exception {
+ // Create a file
+ String testKeyName = "testKey1";
+ Path path = new Path(OZONE_URI_DELIMITER, testKeyName);
+ try (FSDataOutputStream stream = fs.create(path)) {
+ stream.write(1);
+ }
+
+ fs.setTimes(path, 1000, 2000);
+
+ FileStatus fileStatus = fs.getFileStatus(path);
+ // Trash Current directory should still have been created.
Review Comment:
My bad. The test code was copied elsewhere. Updated.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]