-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application Context initialized twice during test when exception thrown during initialization #31793
Comments
This issue is no longer blocked since spring-projects/spring-framework#28826 has been pushed to As stated in the Javadoc for In addition, |
While |
SpringBootDependencyInjectionTestExecutionListener
tries to do this today but it doesn't work as callingtestContext.getApplicationContext()
after the failure results in a second attempt to create the context which also fails. #24888 hopes to fix this in 2.x. In 3.0, we can use a new SPI that's been proposed in the test context framework to process the failure.The text was updated successfully, but these errors were encountered: