HDFS-12010. TestCopyPreserveFlag fails consistently because of mismatch in access time. Contributed by Mukul Kumar Singh.

This commit is contained in:
Arpit Agarwal 2017-06-22 15:42:50 -07:00
parent 6d116ffad2
commit 8ceaac1877
1 changed files with 2 additions and 2 deletions

View File

@ -76,10 +76,10 @@ public class TestCopyPreserveFlag {
output.writeChar('\n'); output.writeChar('\n');
} }
output.close(); output.close();
fs.setTimes(FROM, MODIFICATION_TIME, ACCESS_TIME);
fs.setPermission(FROM, PERMISSIONS); 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.setPermission(DIR_FROM, PERMISSIONS);
fs.setTimes(DIR_FROM, MODIFICATION_TIME, ACCESS_TIME);
} }
@After @After