spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Use early static registration of EventPublishingContextWrapper in tests

Open philwebb opened this issue 1 year ago • 1 comments

See https://github.com/spring-projects/spring-boot/issues/41439#issuecomment-2303907367.

We should try to make things work seamlessly with JUnit and possibly consider making some form of EventPublisherBeansContextWrapper.addWrapperIfNecessary public so that folks can all it directly.

philwebb avatar Aug 22 '24 22:08 philwebb

Somewhat related to this, shouldPublishEventsWhenContextStorageIsInitializedEarly() in OpenTelemetryAutoConfigurationTests is 100% flaky at the moment.

wilkinsona avatar Aug 23 '24 10:08 wilkinsona