From 775cabcc8be5b3cfd8f9111927f6172e30354c9f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 6 Feb 2026 20:45:42 -0800 Subject: [PATCH] Disable failing SpringApplicationShutdownHookTests See gh-49154 --- .../boot/SpringApplicationShutdownHookTests.java | 2 ++ 1 file changed, 2 insertions(+) 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