Skip to content

Commit

Permalink
Add missing verify() in EncoderHttpMessageWriterTests
Browse files Browse the repository at this point in the history
Closes gh-24062
  • Loading branch information
dreis2211 authored and rstoyanchev committed Nov 25, 2019
1 parent 88fd90c commit b234c77
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -180,7 +180,7 @@ void emptyBodyWritten() {
configureEncoder(MimeTypeUtils.TEXT_PLAIN);
HttpMessageWriter<String> writer = new EncoderHttpMessageWriter<>(this.encoder);
writer.write(Mono.empty(), forClass(String.class), TEXT_PLAIN, this.response, NO_HINTS).block();
StepVerifier.create(this.response.getBody()).expectComplete();
StepVerifier.create(this.response.getBody()).verifyComplete();
assertThat(this.response.getHeaders().getContentLength()).isEqualTo(0);
}

Expand Down

0 comments on commit b234c77

Please sign in to comment.