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

             Summary: Fix flaky test GridFsConsumerIT.testAttribute
                 Key: CAMEL-24905
                 URL: https://issues.apache.org/jira/browse/CAMEL-24905
             Project: Camel
          Issue Type: Test
          Components: camel-mongodb-gridfs
    Affects Versions: 4.23.0
            Reporter: Aurélien Pupier


the test failed 2 times in the last 3 days.
it was flaky 10 times in the last 90 days

https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.component.mongodb.gridfs.integration.GridFsConsumerIT&tests.test=testAttribute

first failure:
{noformat}
java.lang.AssertionError: mock://test Received message count. Expected: <1> but 
was: <2>        
        at 
org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:2075)    
        at 
org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:2010)
    
        at 
org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:498)
      
        at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:476)
        
        at 
org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:466)
        
        at 
org.apache.camel.component.mongodb.gridfs.integration.GridFsConsumerIT.runTest(GridFsConsumerIT.java:123)
    
        at 
org.apache.camel.component.mongodb.gridfs.integration.GridFsConsumerIT.testAttribute(GridFsConsumerIT.java:72)
       
{noformat}

second failure on re-run:
{noformat}
org.opentest4j.AssertionFailedError: expected: <false> but was: <true>  
        at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:257)    
        at 
org.apache.camel.component.mongodb.gridfs.integration.GridFsConsumerIT.runTest(GridFsConsumerIT.java:117)
    
        at 
org.apache.camel.component.mongodb.gridfs.integration.GridFsConsumerIT.testAttribute(GridFsConsumerIT.java:72)
       
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to