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
commit 18d855acec5daadcb026d9f99c1dbcfdc5a8d8c6 Author: Aurélien Pupier <[email protected]> AuthorDate: Wed Jun 10 16:14:36 2026 +0200 CAMEL-23317 - stabilize MailProducerUnsupportedCharsetTest there is no sync between the 2 started routes, so the route can finished in a different order than they were started. Signed-off-by: Aurélien Pupier <[email protected]> --- .../camel/component/mail/MailProducerUnsupportedCharsetTest.java | 2 +- .../java/org/apache/camel/component/mail/RawMailMessageTest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerUnsupportedCharsetTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerUnsupportedCharsetTest.java index 3b6fa279e63f..7ebbb1e252e2 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerUnsupportedCharsetTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailProducerUnsupportedCharsetTest.java @@ -53,7 +53,7 @@ public class MailProducerUnsupportedCharsetTest extends CamelTestSupport { context.start(); MockEndpoint mock = getMockEndpoint("mock:result"); - mock.expectedBodiesReceived("Hello World\r\n", "Bye World\r\n"); + mock.expectedBodiesReceivedInAnyOrder("Hello World\r\n", "Bye World\r\n"); mock.allMessages().header("Content-Type").isEqualTo("text/plain"); Map<String, Object> headers = new HashMap<>(); diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java index 1135eeb8ccc2..a986224d1f6f 100644 --- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java +++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java @@ -170,9 +170,9 @@ public class RawMailMessageTest extends CamelTestSupport { folder.close(true); await() - .atMost(500, TimeUnit.MILLISECONDS) - .alias("Await that the sent mail is ready in the Mailbox before starting the Camel route") - .untilAsserted(() -> assertEquals(1, user.getInbox().getNewMessageCount())); + .atMost(500, TimeUnit.MILLISECONDS) + .alias("Await that the sent mail is ready in the Mailbox before starting the Camel route") + .untilAsserted(() -> assertEquals(1, user.getInbox().getNewMessageCount())); } @Override
