From 0b4934d140f64feb7a8a995ab4e66d990dbbf931 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Fri, 10 May 2019 17:43:45 +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 ba925fcf350..aa31d7f6668 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 @@ -335,7 +335,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!"))); }