You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/07/12 02:26:31 UTC

[GitHub] [commons-configuration] darkma773r commented on a diff in pull request #194: CONFIGURATION-817: update to JUnit 5

darkma773r commented on code in PR #194:
URL: https://github.com/apache/commons-configuration/pull/194#discussion_r918489801


##########
src/test/java/org/apache/commons/configuration2/TestDynamicCombinedConfiguration.java:
##########
@@ -198,6 +198,8 @@ public static void setUpOnce() {
 
     private void copyFile(final File input, final File output) throws IOException {
         FileUtils.copyFile(input, output, StandardCopyOption.REPLACE_EXISTING);
+        // On Windows, the last modified time is copied by default. Change the last modified time manually.
+        output.setLastModified(System.currentTimeMillis());

Review Comment:
   Can you explain the need for this change in more detail? Was this test not working before?



-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org