Ignores blockhound for java16
This includes moving the blockhound-junit-platform dependency to a profile. Fixes gh-2186
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.projectreactor.tools</groupId>
|
||||
<artifactId>blockhound-junit-platform</artifactId>
|
||||
<artifactId>blockhound</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -194,6 +194,13 @@
|
||||
<activation>
|
||||
<jdk>(,16)</jdk>
|
||||
</activation>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.projectreactor.tools</groupId>
|
||||
<artifactId>blockhound-junit-platform</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -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,7 +29,7 @@ import reactor.core.scheduler.Schedulers;
|
||||
public class CustomBlockHoundIntegrationTest {
|
||||
|
||||
@Test
|
||||
// @EnabledOnJre(JRE.JAVA_8)
|
||||
@DisabledForJreRange(min = JRE.JAVA_16)
|
||||
public void shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration() {
|
||||
Assertions.assertThrows(RuntimeException.class, () -> Mono.fromCallable(() -> {
|
||||
Thread.sleep(1);
|
||||
|
||||
Reference in New Issue
Block a user