From 1f897ad92326cf7a9964ecb59859c18a5dab64bf Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 2 May 2019 10:14:08 +0200 Subject: [PATCH] Fix DefaultErrorWebExceptionHandler test --- .../error/DefaultErrorWebExceptionHandlerIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java index 111b4e42cb..f26dc343f5 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java @@ -354,7 +354,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests { @GetMapping("/commit") public Mono commit(ServerWebExchange exchange) { - return exchange.getResponse().writeWith(Mono.empty()).then( + return exchange.getResponse().setComplete().then( Mono.error(new IllegalStateException("already committed!"))); }