Skip to content

Commit f43fb41

Browse files
JiangTChensbrannen
authored andcommitted
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
1 parent a849f76 commit f43fb41

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import java.time.Duration;
2424
import java.util.Map;
2525

26+
import org.junit.jupiter.api.Disabled;
27+
import org.junit.jupiter.api.Test;
2628
import reactor.core.publisher.Mono;
2729
import reactor.core.scheduler.Schedulers;
2830
import reactor.test.StepVerifier;
@@ -101,6 +103,16 @@ void transferTo(HttpServer httpServer) throws Exception {
101103
// TODO Determine why Undertow fails: https://github.com/spring-projects/spring-framework/issues/25310
102104
assumeFalse(httpServer instanceof UndertowHttpServer, "Undertow currently fails with transferTo");
103105

106+
verifyTransferTo(httpServer);
107+
}
108+
109+
@Disabled("Unstable on Undertow,Use @RepeatedTest(100) for verify")
110+
@Test
111+
void transferToWithUndertow() throws Exception {
112+
verifyTransferTo(new UndertowHttpServer());
113+
}
114+
115+
private void verifyTransferTo(HttpServer httpServer) throws Exception {
104116
startServer(httpServer);
105117

106118
Mono<String> result = webClient

0 commit comments

Comments
 (0)