Skip to content

Commit 1f897ad

Browse files
committed
Fix DefaultErrorWebExceptionHandler test
1 parent 4ad837f commit 1f897ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public Mono<String> badRequest() {
354354

355355
@GetMapping("/commit")
356356
public Mono<Void> commit(ServerWebExchange exchange) {
357-
return exchange.getResponse().writeWith(Mono.empty()).then(
357+
return exchange.getResponse().setComplete().then(
358358
Mono.error(new IllegalStateException("already committed!")));
359359
}
360360

0 commit comments

Comments
 (0)