From dec24e02b9183c64d88a4d5efb511ef6ac8c0352 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Fri, 13 Dec 2024 14:35:39 -0500 Subject: [PATCH] Limits CustomBlockHoundIntegrationTest to java 17 --- .../cloud/gateway/test/CustomBlockHoundIntegrationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/CustomBlockHoundIntegrationTest.java b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/CustomBlockHoundIntegrationTest.java index 67ba0f7c..228679ac 100644 --- a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/CustomBlockHoundIntegrationTest.java +++ b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/CustomBlockHoundIntegrationTest.java @@ -18,6 +18,8 @@ package org.springframework.cloud.gateway.test; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import reactor.core.publisher.Mono; import reactor.core.scheduler.Schedulers; @@ -27,6 +29,7 @@ import reactor.core.scheduler.Schedulers; public class CustomBlockHoundIntegrationTest { @Test + @DisabledForJreRange(min = JRE.JAVA_18) public void shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration() { Assertions.assertThrows(RuntimeException.class, () -> Mono.fromCallable(() -> { Thread.sleep(1);