You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ap...@apache.org on 2025/10/21 14:04:40 UTC
(camel) branch main updated: Fix Docling IT test
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 e0c796c16387 Fix Docling IT test
e0c796c16387 is described below
commit e0c796c163874286c4a571fcc383ca6d2b487685
Author: Aurélien Pupier <ap...@ibm.com>
AuthorDate: Tue Oct 21 14:57:21 2025 +0200
Fix Docling IT test
The loop/choice was not well configured. it was going through the loop a
single time. The tests could pass only on the first attempt of the loop
if the result was already available (potentially on fast GPU computer)
Signed-off-by: Aurélien Pupier <ap...@ibm.com>
---
.../java/org/apache/camel/component/docling/DoclingServeProducerIT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-ai/camel-docling/src/test/java/org/apache/camel/component/docling/DoclingServeProducerIT.java b/components/camel-ai/camel-docling/src/test/java/org/apache/camel/component/docling/DoclingServeProducerIT.java
index 057b7889de81..a346264aa300 100644
--- a/components/camel-ai/camel-docling/src/test/java/org/apache/camel/component/docling/DoclingServeProducerIT.java
+++ b/components/camel-ai/camel-docling/src/test/java/org/apache/camel/component/docling/DoclingServeProducerIT.java
@@ -437,7 +437,7 @@ public class DoclingServeProducerIT extends CamelTestSupport {
.stop()
.when(exchangeProperty("isFailed").isEqualTo(true))
.throwException(new RuntimeException("Conversion failed: ${exchangeProperty.errorMessage}"))
- .end()
+ .endChoice()
.delay(1000) // Wait 1 second before next poll
.end()
// Step 3: Extract result