Fix DefaultErrorWebExceptionHandler test

This commit is contained in:
Brian Clozel
2019-05-10 17:43:45 +02:00
parent c4024d8b45
commit 0b4934d140

View File

@@ -335,7 +335,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!")));
}