You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/08/11 17:50:17 UTC

[camel] 01/01: camel-mail - Attempt to fix flaky test

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

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

commit c3df464278e4bf0f9895cf3a4c16c47aeef9f9bb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Aug 11 19:50:02 2023 +0200

    camel-mail - Attempt to fix flaky test
---
 .../test/java/org/apache/camel/component/mail/MailConvertersTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailConvertersTest.java b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailConvertersTest.java
index c25fe9e7cc6..96383fe7b95 100644
--- a/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailConvertersTest.java
+++ b/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailConvertersTest.java
@@ -36,12 +36,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class MailConvertersTest extends CamelTestSupport {
-    private static final MailboxUser james = Mailbox.getOrCreateUser("james", "secret");
+
+    private MailboxUser james;
 
     @Override
     @BeforeEach
     public void setUp() throws Exception {
         Mailbox.clearAll();
+        james = Mailbox.getOrCreateUser("james", "secret");
         super.setUp();
     }