Browse Source

Fix DefaultErrorWebExceptionHandler test

pull/16873/head
Brian Clozel 7 years ago
parent
commit
0b4934d140
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java

2
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java

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

Loading…
Cancel
Save