From ffccec953fbf0431dcd025cbc2f5723d9b7c5091 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 9 Jan 2020 14:24:35 -0600 Subject: [PATCH] Fix HttpHeaderWriterWebFilterTests Ensure setComplete() is subscribed to --- .../web/server/header/HttpHeaderWriterWebFilterTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }