Browse Source

Polish SecurityContextChannelInterceptorTests

Issue gh-10973
pull/11070/head
Josh Cummings 4 years ago
parent
commit
cad2972d0a
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
  1. 1
      messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java

1
messaging/src/test/java/org/springframework/security/messaging/context/SecurityContextChannelInterceptorTests.java

@ -69,6 +69,7 @@ public class SecurityContextChannelInterceptorTests {
@AfterEach @AfterEach
public void cleanup() { public void cleanup() {
this.interceptor.afterMessageHandled(this.messageBuilder.build(), this.channel, this.handler, null);
SecurityContextHolder.clearContext(); SecurityContextHolder.clearContext();
} }

Loading…
Cancel
Save