Skip to content

Commit

Permalink
Merge branch '4.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Dec 13, 2024
2 parents 15770df + dec24e0 commit 5aee84c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

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;

Expand All @@ -27,6 +29,7 @@
public class CustomBlockHoundIntegrationTest {

@Test
@DisabledForJreRange(min = JRE.JAVA_18)
public void shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration() {
Assertions.assertThrows(RuntimeException.class, () -> Mono.fromCallable(() -> {

Check failure on line 34 in spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/test/CustomBlockHoundIntegrationTest.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CustomBlockHoundIntegrationTest.shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration

Expected java.lang.RuntimeException to be thrown, but nothing was thrown.
Raw output
org.opentest4j.AssertionFailedError: Expected java.lang.RuntimeException to be thrown, but nothing was thrown.
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:73)
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
	at org.springframework.cloud.gateway.test.CustomBlockHoundIntegrationTest.shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration(CustomBlockHoundIntegrationTest.java:34)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Thread.sleep(1);
Expand Down

0 comments on commit 5aee84c

Please sign in to comment.