This is an automated email from the ASF dual-hosted git repository. davsclaus 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 e5309c90132 Flaky test e5309c90132 is described below commit e5309c90132c5849654ebfe8eab7ce60b5383882 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Feb 19 15:51:25 2025 +0100 Flaky test --- .../camel/issues/RecipientListUseOriginalMessageIssueTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/issues/RecipientListUseOriginalMessageIssueTest.java b/core/camel-core/src/test/java/org/apache/camel/issues/RecipientListUseOriginalMessageIssueTest.java index 779b2d680e4..c02b9de2c94 100644 --- a/core/camel-core/src/test/java/org/apache/camel/issues/RecipientListUseOriginalMessageIssueTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/issues/RecipientListUseOriginalMessageIssueTest.java @@ -16,10 +16,13 @@ */ package org.apache.camel.issues; +import java.util.concurrent.TimeUnit; + import org.apache.camel.ContextTestSupport; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; +import org.awaitility.Awaitility; import org.junit.jupiter.api.Test; /** @@ -36,7 +39,9 @@ public class RecipientListUseOriginalMessageIssueTest extends ContextTestSupport assertMockEndpointsSatisfied(); - assertFileExists(testFile("outbox/hello.txt"), "A"); + Awaitility.await().pollDelay(50, TimeUnit.MILLISECONDS).untilAsserted(() -> { + assertFileExists(testFile("outbox/hello.txt"), "A"); + }); } @Override