提交 b7b0313c 编写于 作者: S Sebastien Deleuze

Speed up RequestMappingIntegrationTests

Reactor Core + Spring Reactive now handle correctly
shorter interval for the stream result test.
上级 8c765814
......@@ -18,7 +18,6 @@ package org.springframework.web.reactive.result.method.annotation;
import java.net.URI;
import java.nio.ByteBuffer;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
......@@ -434,13 +433,7 @@ public class RequestMappingIntegrationTests extends AbstractHttpHandlerIntegrati
@RequestMapping("/stream-result")
public Publisher<Long> stringStreamResponseBody() {
/*
TODO: replace the following line with:
return Flux.interval(Duration.ofMillis(100)).take(5);
to make the build last shorter. Unfortunately, this hangs the build as of
20160317.
*/
return Flux.interval(Duration.ofSeconds(1)).take(5);
return Flux.interval(100).take(5);
}
@RequestMapping("/raw-flux")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册