Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19569

[observability|opentelemetry].CurrentSpanTest.testContextDoesNotLeak() fail on Github Actions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0-RC2, 4.0.0
    • None
    • None
    • Unknown

    Description

      org.apache.camel.opentelemetry.CurrentSpanTest.testContextDoesNotLeak() and org.apache.camel.observation.CurrentSpanTest.testContextDoesNotLeak fail on GutHub Actions:

      [ERROR] org.apache.camel.opentelemetry.CurrentSpanTest.testContextDoesNotLeak -- Time elapsed: 1.115 s <<< FAILURE!
      org.opentest4j.AssertionFailedError: expected: <30> but was: <1>
      	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
      	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
      	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
      	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
      	at org.apache.camel.opentelemetry.CamelOpenTelemetryTestSupport.verifyTraceSpanNumbers(CamelOpenTelemetryTestSupport.java:156)
      	at org.apache.camel.opentelemetry.CurrentSpanTest.testContextDoesNotLeak(CurrentSpanTest.java:196)
      
      [ERROR] org.apache.camel.observation.CurrentSpanTest.testContextDoesNotLeak -- Time elapsed: 1.182 s <<< FAILURE!
      org.opentest4j.AssertionFailedError: expected: <30> but was: <1>
      	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
      	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
      	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
      	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
      	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
      	at org.apache.camel.observation.CamelMicrometerObservationTestSupport.verifyTraceSpanNumbers(CamelMicrometerObservationTestSupport.java:205)
      	at org.apache.camel.observation.CurrentSpanTest.testContextDoesNotLeak(CurrentSpanTest.java:202)
      

      Seen in this PR: https://github.com/apache/camel/pull/10539

      Attachments

        Activity

          People

            Unassigned Unassigned
            ppalaga Peter Palaga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: