Skip to content

Commit

Permalink
Try to stop test from being flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Aug 23, 2024
1 parent a7c5edb commit d71fe11
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.FilteredClassLoader;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.testsupport.classpath.ForkedClassPath;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -328,6 +329,7 @@ void shouldDisablePropagationIfTracingIsDisabled() {
}

@Test // gh-41439
@ForkedClassPath
void shouldPublishEventsWhenContextStorageIsInitializedEarly() {
this.contextRunner.withInitializer(this::initializeOpenTelemetry)
.withUserConfiguration(OtelEventListener.class)
Expand Down

0 comments on commit d71fe11

Please sign in to comment.