Skip to content

Commit 0b4934d

Browse files
committed
Fix DefaultErrorWebExceptionHandler test
1 parent c4024d8 commit 0b4934d

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
@@ -335,7 +335,7 @@ public Mono<String> badRequest() {
335335

336336
@GetMapping("/commit")
337337
public Mono<Void> commit(ServerWebExchange exchange) {
338-
return exchange.getResponse().writeWith(Mono.empty()).then(
338+
return exchange.getResponse().setComplete().then(
339339
Mono.error(new IllegalStateException("already committed!")));
340340
}
341341

0 commit comments

Comments
 (0)