[
https://issues.apache.org/jira/browse/CAMEL-23247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18068349#comment-18068349
]
Aurélien Pupier commented on CAMEL-23247:
-----------------------------------------
So from what I understand the MailConsumer is closing the Pop3Folder without
awaiting that the messages finished to went through the converters. Not sure if
it is due to the Test using direct Camel API or a problem with classic camel
route execution
> Test MailContentTypeResolverTest.testCustomContentTypeResolver is regularly
> failing
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-23247
> URL: https://issues.apache.org/jira/browse/CAMEL-23247
> Project: Camel
> Issue Type: Test
> Components: camel-mail
> Affects Versions: 4.19.0
> Reporter: Aurélien Pupier
> Priority: Major
>
> it failed 2 times out of last 7 runs on CI
> {noformat}
> org.opentest4j.AssertionFailedError: expected: <Hello World> but was:
> <jakarta.mail.internet.MimeMultipart@26c2f767>
> at
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:158)
> at
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:139)
> at
> org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:201)
> at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:184)
> at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:179)
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1188)
> at
> org.apache.camel.component.mail.MailContentTypeResolverTest.testCustomContentTypeResolver(MailContentTypeResolverTest.java:72)
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)