Browse Source

Simplify debugging of Undertow transferTo issue

This commit introduces a dedicated (disabled) transferToWithUndertow()
test method to simplify debugging of transferTo issues with Undertow.

See gh-25310
Closes gh-27908
pull/27941/head
Frank Chen 4 years ago committed by Sam Brannen
parent
commit
f43fb41bce
  1. 12
      spring-webflux/src/test/java/org/springframework/web/reactive/function/MultipartIntegrationTests.java

12
spring-webflux/src/test/java/org/springframework/web/reactive/function/MultipartIntegrationTests.java

@ -23,6 +23,8 @@ import java.nio.file.Paths; @@ -23,6 +23,8 @@ import java.nio.file.Paths;
import java.time.Duration;
import java.util.Map;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
import reactor.test.StepVerifier;
@ -101,6 +103,16 @@ class MultipartIntegrationTests extends AbstractRouterFunctionIntegrationTests { @@ -101,6 +103,16 @@ class MultipartIntegrationTests extends AbstractRouterFunctionIntegrationTests {
// TODO Determine why Undertow fails: https://github.com/spring-projects/spring-framework/issues/25310
assumeFalse(httpServer instanceof UndertowHttpServer, "Undertow currently fails with transferTo");
verifyTransferTo(httpServer);
}
@Disabled("Unstable on Undertow,Use @RepeatedTest(100) for verify")
@Test
void transferToWithUndertow() throws Exception {
verifyTransferTo(new UndertowHttpServer());
}
private void verifyTransferTo(HttpServer httpServer) throws Exception {
startServer(httpServer);
Mono<String> result = webClient

Loading…
Cancel
Save