Aurélien Pupier created CAMEL-26374:
---------------------------------------

             Summary: Fix flaky test FileProducerMapBodyTest
                 Key: CAMEL-26374
                 URL: https://issues.apache.org/jira/browse/CAMEL-26374
             Project: Camel
          Issue Type: Test
          Components: camel-file
    Affects Versions: 4.24.0
            Reporter: Aurélien Pupier


the test was added [10 days ago but already failed 8 
times|https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&search.usernames=jenkins&tests.container=org.apache.camel.component.file.FileProducerMapBodyTest&tests.test=testListBodyToACsvFileWithCharset]

{noformat}
org.opentest4j.AssertionFailedError: Cannot store file: 
/tmp/junit-694981422602589659/lines.csv: No body available of type: 
java.io.InputStream but has type: java.util.ImmutableCollections.List12 on: 
Message (the body is a List, which is not file content: marshal it first 
(marshal: csv, for the file name lines.csv), or set the body to the text). 
Exchange[] ==> expected: <true> but was: <false>    
        at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:232)     
        at 
org.apache.camel.component.file.FileProducerMapBodyTest.testListBodyToACsvFileWithCharset(FileProducerMapBodyTest.java:64)
   
{noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to