mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Use concatWith instead of mergeWith
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ public class FormHttpMessageReaderTests extends AbstractDataBufferAllocatingTest
|
||||
public void readFormError() {
|
||||
DataBuffer fooBuffer = stringBuffer("name=value");
|
||||
Flux<DataBuffer> body =
|
||||
Flux.just(fooBuffer).mergeWith(Flux.error(new RuntimeException()));
|
||||
Flux.just(fooBuffer).concatWith(Flux.error(new RuntimeException()));
|
||||
MockServerHttpRequest request = request(body);
|
||||
|
||||
Flux<MultiValueMap<String, String>> result = this.reader.read(null, request, null);
|
||||
|
||||
+1
-1
@@ -176,7 +176,7 @@ public class ServerSentEventHttpMessageReaderTests extends AbstractDataBufferAll
|
||||
|
||||
Flux<DataBuffer> body =
|
||||
Flux.just(stringBuffer("data:foo\ndata:bar\n\ndata:baz\n\n"))
|
||||
.mergeWith(Flux.error(new RuntimeException()));
|
||||
.concatWith(Flux.error(new RuntimeException()));
|
||||
|
||||
MockServerHttpRequest request = MockServerHttpRequest.post("/")
|
||||
.body(body);
|
||||
|
||||
Reference in New Issue
Block a user