Fix flaky OpenTelemetryInstallerTest
MODIFY
javaagent-tooling/src/test/groovy/io/opentelemetry/javaagent/tooling/OpenTelemetryInstallerTest.groovy
javaagent-tooling/src/test/groovy/io/opentelemetry/javaagent/tooling/OpenTelemetryInstallerTest.groovy
@@ -8,16 +8,19 @@ package io.opentelemetry.javaagent.tooling
import io.opentelemetry.api.GlobalOpenTelemetry
import io.opentelemetry.extension.noopapi.NoopOpenTelemetry
import io.opentelemetry.instrumentation.api.config.Config
+import io.opentelemetry.javaagent.instrumentation.api.appender.internal.AgentLogEmitterProvider
import spock.lang.Specification
class OpenTelemetryInstallerTest extends Specification {
void setup() {
GlobalOpenTelemetry.resetForTest()
+ AgentLogEmitterProvider.resetForTest()
}
void cleanup() {
GlobalOpenTelemetry.resetForTest()
+ AgentLogEmitterProvider.resetForTest()
}
def "should initialize GlobalOpenTelemetry"() {

Fix flaky OpenTelemetryInstallerTest (#5123)