Skip to content

Commit

Permalink
test: FileUtilTest passes on all platforms (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurrie authored Feb 16, 2024
1 parent 8aea359 commit 34503a1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ void copy_whenFileCopied_shouldPreserveLastModifiedTimestamp() throws IOExceptio
Files.write(sourceFile.toPath(), "testdata".getBytes(StandardCharsets.UTF_8));
long originalTimestamp = new Date().getTime() - 10;
assertThat(sourceFile.setLastModified(originalTimestamp)).isTrue();
originalTimestamp = sourceFile.lastModified(); // Update last modified, because different platforms have different precision.
Path targetFilePath = folder.toPath().resolve("target");

// When
Expand Down

0 comments on commit 34503a1

Please sign in to comment.