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