This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
The following commit(s) were added to refs/heads/master by this push:
new d4197ce Use byte-based file content comparison in tests to avoid
Windows failures
d4197ce is described below
commit d4197ce606f9633f527fbb6e880db78cf04a39a3
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon Jan 30 11:09:26 2023 +0100
Use byte-based file content comparison in tests to avoid Windows failures
---
.../src/test/java/org/apache/logging/log4j/changelog/FileTestUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/log4j-changelog/src/test/java/org/apache/logging/log4j/changelog/FileTestUtils.java
b/log4j-changelog/src/test/java/org/apache/logging/log4j/changelog/FileTestUtils.java
index d67ff40..3fa3afd 100644
---
a/log4j-changelog/src/test/java/org/apache/logging/log4j/changelog/FileTestUtils.java
+++
b/log4j-changelog/src/test/java/org/apache/logging/log4j/changelog/FileTestUtils.java
@@ -45,7 +45,7 @@ final class FileTestUtils {
final Path actualFilePath = actualContents.get(relativeFilePath);
final Path expectedFilePath =
expectedContents.get(relativeFilePath);
if (!Files.isDirectory(actualFilePath) ||
!Files.isDirectory(expectedFilePath)) {
-
assertThat(actualFilePath).hasSameTextualContentAs(expectedFilePath,
StandardCharsets.UTF_8);
+
assertThat(actualFilePath).hasSameBinaryContentAs(expectedFilePath);
}
});