This is an automated email from the ASF dual-hosted git repository.

tballison pushed a commit to branch TIKA-4864-windows-test-fix
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 265e4317c91a0766f2f3d9babf400dcf33a8ed5e
Author: tallison <[email protected]>
AuthorDate: Mon Aug 31 15:02:48 2026 -0400

    fix windows
---
 .../src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
 
b/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
index 44bd73c415..f41f8bc424 100644
--- 
a/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
+++ 
b/tika-pipes/tika-async-cli/src/test/java/org/apache/tika/async/cli/AsyncCliParserTest.java
@@ -199,8 +199,10 @@ public class AsyncCliParserTest {
         JsonNode root = mapper.readTree(result.toFile());
         assertTrue(root.has("plugin-roots"), "Merged config should have 
plugin-roots");
         String pluginRoots = root.get("plugin-roots").asText();
-        assertTrue(pluginRoots.equals("plugins") || 
pluginRoots.endsWith("/plugins"),
-                "plugin-roots should be 'plugins' or end with '/plugins', got: 
" + pluginRoots);
+        // the default is an absolute path since TIKA-4864; compare the file 
name,
+        // not the string, so the separator does not break the test on Windows
+        assertEquals("plugins", Path.of(pluginRoots).getFileName().toString(),
+                "plugin-roots should name a 'plugins' directory, got: " + 
pluginRoots);
 
         // Original config values should be preserved
         assertTrue(root.has("pipes"));

Reply via email to