diff --git a/web/src/test/java/org/springframework/security/web/server/header/HttpHeaderWriterWebFilterTests.java b/web/src/test/java/org/springframework/security/web/server/header/HttpHeaderWriterWebFilterTests.java index f83511cee1..3d021b2300 100644 --- a/web/src/test/java/org/springframework/security/web/server/header/HttpHeaderWriterWebFilterTests.java +++ b/web/src/test/java/org/springframework/security/web/server/header/HttpHeaderWriterWebFilterTests.java @@ -67,7 +67,7 @@ public class HttpHeaderWriterWebFilterTests { verify(writer, never()).writeHttpHeaders(any()); - result.getExchange().getResponse().setComplete(); + result.getExchange().getResponse().setComplete().block(); verify(writer).writeHttpHeaders(any()); }