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

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


it has failed 3 time sin the last 90 days:

https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest&tests.test=testMetricsHistory

first failure is:

{noformat}
org.opentest4j.AssertionFailedError: expected: <5> but was: <4> 
        at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:673)   
        at 
org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest.testMetricsHistory(MessageHistoryExceptionRouteTest.java:66)
  
{noformat}

following failures on rerun are:
{noformat}
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a 
Lambda expression in 
org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest
 expected: not <null> within 5 seconds.      
        at 
org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)        
                •••
        at 
org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest.testMetricsHistory(MessageHistoryExceptionRouteTest.java:70)
  
Caused by: org.opentest4j.AssertionFailedError: expected: not <null>    
        at org.junit.jupiter.api.Assertions.assertNotNull(Assertions.java:336)  
        at 
org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest.getPointData(MessageHistoryExceptionRouteTest.java:78)
        
        at 
org.apache.camel.opentelemetry.metrics.messagehistory.MessageHistoryExceptionRouteTest.lambda$testMetricsHistory$0(MessageHistoryExceptionRouteTest.java:70)
 
{noformat}

so 2 problems to fix here. One fo rthe first failure and after for the others 
surely due to a bad cleanup in case of test failure





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

Reply via email to