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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9cf88caa0544 Revert "CAMEL-24026: Fix flaky XsltFromFileExceptionTest 
(#24625)"
9cf88caa0544 is described below

commit 9cf88caa05446d474a58f947e6668267b4ba7f5e
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Mon Jul 20 14:46:30 2026 +0200

    Revert "CAMEL-24026: Fix flaky XsltFromFileExceptionTest (#24625)"
    
    This reverts commit 1f8808cc848e83c2a6fd0a5e320bb3534dce0ca0.
---
 .../camel/component/xslt/XsltFromFileExceptionTest.java      | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java
index dab9fc2d9b5f..74f68c9e1a3f 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java
@@ -21,8 +21,6 @@ import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
 import org.junit.jupiter.api.Test;
 
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
 /**
  *
  */
@@ -35,11 +33,10 @@ public class XsltFromFileExceptionTest extends 
ContextTestSupport {
 
         template.sendBodyAndHeader(fileUri(), "<hello>world!</hello>", 
Exchange.FILE_NAME, "hello.xml");
 
-        // wait for the file consumer to pick up and process the file before 
asserting
-        assertTrue(oneExchangeDone.matchesWaitTime(), "Exchange should have 
completed");
-
         assertMockEndpointsSatisfied();
 
+        oneExchangeDone.matchesWaitTime();
+
         assertFileNotExists(testFile("hello.xml"));
         assertFileExists(testFile("ok/hello.xml"));
     }
@@ -52,11 +49,10 @@ public class XsltFromFileExceptionTest extends 
ContextTestSupport {
         // the last tag is not ended properly
         template.sendBodyAndHeader(fileUri(), "<hello>world!</hello", 
Exchange.FILE_NAME, "hello2.xml");
 
-        // wait for the file consumer to pick up and process the file before 
asserting
-        assertTrue(oneExchangeDone.matchesWaitTime(), "Exchange should have 
completed");
-
         assertMockEndpointsSatisfied();
 
+        oneExchangeDone.matchesWaitTime();
+
         assertFileNotExists(testFile("hello2.xml"));
         assertFileExists(testFile("error/hello2.xml"));
     }

Reply via email to