From 538c2329d2b4b4c3551c49be30595b77728263e1 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Fri, 29 Sep 2023 23:30:40 +0300 Subject: [PATCH] Clear exported data after test (#9583) --- .../instrumentation/testing/junit/InstrumentationExtension.java | 1 + 1 file changed, 1 insertion(+) diff --git a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java index c2680b3764d1..0426436e91d8 100644 --- a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java +++ b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java @@ -59,6 +59,7 @@ public void afterEach(ExtensionContext context) throws Exception { @Override public void afterAll(ExtensionContext extensionContext) throws Exception { + testRunner.clearAllExportedData(); testRunner.afterTestClass(); }