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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1307b92fe6ca77108c64371625a640ba018bf359
Author: Anton Goncharov <goncharov.a...@gmail.com>
AuthorDate: Tue Nov 7 22:16:37 2023 +0100

    Fix TestSupport fileUri method to use provided directory as root
---
 core/camel-core/src/test/java/org/apache/camel/TestSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/TestSupport.java 
b/core/camel-core/src/test/java/org/apache/camel/TestSupport.java
index fc53971b7b3..29604c205f3 100644
--- a/core/camel-core/src/test/java/org/apache/camel/TestSupport.java
+++ b/core/camel-core/src/test/java/org/apache/camel/TestSupport.java
@@ -125,7 +125,7 @@ public abstract class TestSupport {
     }
 
     protected String fileUri(Path directory, String query) {
-        return "file:" + testDirectory().resolve(directory) + 
(query.startsWith("?") ? "" : "/") + query;
+        return "file:" + directory + (query.startsWith("?") ? "" : "/") + 
query;
     }
 
     protected boolean canRunOnThisPlatform() {

Reply via email to