From 21612eba1914d1ec9c4ea4d193664e2b5ee7d4da Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Fri, 9 Sep 2022 20:22:16 +0200 Subject: [PATCH] Disable BlockHound tests on Java 18+ BlockHound is not currently compatible with Java 18. --- .../core/SpringCoreBlockHoundIntegrationTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java b/spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java index 370eb36a456..33cf70967e4 100644 --- a/spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java +++ b/spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java @@ -22,6 +22,8 @@ import java.util.concurrent.CompletableFuture; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnJre; +import org.junit.jupiter.api.condition.JRE; import reactor.blockhound.BlockHound; import reactor.core.scheduler.ReactorBlockHoundIntegration; import reactor.core.scheduler.Schedulers; @@ -47,6 +49,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; * @author Sam Brannen * @since 5.2.4 */ +@DisabledOnJre(JRE.JAVA_18) // BlockHound is not compatible with JDK 18 yet class SpringCoreBlockHoundIntegrationTests {