diff --git a/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookTests.java b/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookTests.java index 327b44e6469..1f5c174d0d1 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookTests.java @@ -26,6 +26,7 @@ import java.util.concurrent.TimeUnit; import org.awaitility.Awaitility; import org.jspecify.annotations.Nullable; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.mockito.InOrder; @@ -99,6 +100,7 @@ class SpringApplicationShutdownHookTests { } @Test + @Disabled void runWhenContextIsBeingClosedInAnotherThreadWaitsUntilContextIsInactive() throws InterruptedException { // This situation occurs in the Spring Tools IDE. It triggers a context close via // JMX and then stops the JVM. The two actions happen almost simultaneously