From 0be2a037413d981162f07ded6a5684bd3c44bed8 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 24 Mar 2022 12:52:25 -0600 Subject: [PATCH] Polish SecurityContextChannelInterceptorTests Issue gh-10973 --- .../context/SecurityContextChannelInterceptorTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java b/messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java index 1901b87aaa..774c13530a 100644 --- a/messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java +++ b/messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java @@ -69,6 +69,7 @@ public class SecurityContextChannelInterceptorTests { @AfterEach public void cleanup() { + this.interceptor.afterMessageHandled(this.messageBuilder.build(), this.channel, this.handler, null); SecurityContextHolder.clearContext(); }