Skip to content

Commit d71fe11

Browse files
committed
Try to stop test from being flaky
See gh-42005 See gh-41439
1 parent a7c5edb commit d71fe11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/OpenTelemetryAutoConfigurationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
import org.springframework.boot.autoconfigure.AutoConfigurations;
6767
import org.springframework.boot.test.context.FilteredClassLoader;
6868
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
69+
import org.springframework.boot.testsupport.classpath.ForkedClassPath;
6970
import org.springframework.context.ConfigurableApplicationContext;
7071
import org.springframework.context.annotation.Bean;
7172
import org.springframework.context.annotation.Configuration;
@@ -328,6 +329,7 @@ void shouldDisablePropagationIfTracingIsDisabled() {
328329
}
329330

330331
@Test // gh-41439
332+
@ForkedClassPath
331333
void shouldPublishEventsWhenContextStorageIsInitializedEarly() {
332334
this.contextRunner.withInitializer(this::initializeOpenTelemetry)
333335
.withUserConfiguration(OtelEventListener.class)

0 commit comments

Comments
 (0)