Merge branch '5.1.x'

This commit is contained in:
Arjen Poutsma
2019-08-29 17:18:22 +02:00
3 changed files with 49 additions and 30 deletions

View File

@@ -568,12 +568,13 @@ class WebClientIntegrationTests {
byte[] expected = Files.readAllBytes(resource.getFile().toPath());
Flux<DataBuffer> body = DataBufferUtils.read(resource, new DefaultDataBufferFactory(), 4096);
this.webClient.post()
Mono<Void> result = this.webClient.post()
.uri("/")
.body(body, DataBuffer.class)
.retrieve()
.bodyToMono(Void.class)
.block(Duration.ofSeconds(5));
.bodyToMono(Void.class);
StepVerifier.create(result).verifyComplete();
expectRequest(request -> {
ByteArrayOutputStream actual = new ByteArrayOutputStream();