This is an automated email from the ASF dual-hosted git repository. THausherr pushed a commit to branch TIKA-4848 in repository https://gitbox.apache.org/repos/asf/tika.git
commit eb3490b7ce46ed053c1a61a1e0b3a9d4f4f245bb Author: Tilman Hausherr <[email protected]> AuthorDate: Fri Aug 28 10:22:42 2026 +0200 [TIKA-4848] Fix expected output in ExceptionUtilsTest to account for Windows line endings. --- tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java b/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java index c29f06708b..bd1674565b 100644 --- a/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java +++ b/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java @@ -75,6 +75,7 @@ public class ExceptionUtilsTest { assertTrue(redacted.contains(" more\n"), "common-frame elision kept"); // Strip ": message" from every header line of FULL; the rest must be identical. String expected = full.replaceAll("(?m)^((?:\\t*Suppressed: |Caused by: )?[\\w.$]+Exception): .*$", "$1"); + expected = expected.replace("\r", ""); // windows assertEquals(expected, redacted); }
