Use concatWith instead of mergeWith
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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