Fix DefaultErrorWebExceptionHandler test

This commit is contained in:
Brian Clozel 2019-05-02 10:14:08 +02:00
parent 4ad837f5dc
commit 1f897ad923
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests {
@GetMapping("/commit")
public Mono<Void> commit(ServerWebExchange exchange) {
return exchange.getResponse().writeWith(Mono.empty()).then(
return exchange.getResponse().setComplete().then(
Mono.error(new IllegalStateException("already committed!")));
}