Limits CustomBlockHoundIntegrationTest to java 17

This commit is contained in:
spencergibb
2024-12-13 14:35:39 -05:00
parent 3419b41caa
commit dec24e02b9

View File

@@ -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);