diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java index 85e3dda54b..47dc601ed0 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCopyPreserveFlag.java @@ -76,10 +76,10 @@ public void initialize() throws Exception { output.writeChar('\n'); } output.close(); - fs.setTimes(FROM, MODIFICATION_TIME, ACCESS_TIME); fs.setPermission(FROM, PERMISSIONS); - fs.setTimes(DIR_FROM, MODIFICATION_TIME, ACCESS_TIME); + fs.setTimes(FROM, MODIFICATION_TIME, ACCESS_TIME); fs.setPermission(DIR_FROM, PERMISSIONS); + fs.setTimes(DIR_FROM, MODIFICATION_TIME, ACCESS_TIME); } @After