Commits

pi songsiritat committed 58d3eca

attempt to fix flakiness caused by ThreadLocalContextManagerTest

  • Participants
  • Parent commits 599328e

Comments (0)

Files changed (1)

File platform-ctk-plugin/src/main/java/com/atlassian/refapp/ctk/sal/ThreadLocalContextManagerTest.java

 import com.atlassian.functest.junit.SpringAwareTestCase;
 import com.atlassian.sal.api.executor.ThreadLocalContextManager;
 import com.atlassian.seraph.auth.AuthenticationContext;
+import org.junit.After;
 import org.junit.Test;
 
 import java.security.Principal;
         }.doDo();
     }
 
+
+    @After
+    public void cleanUp()
+    {
+        threadLocalContextManager.clearThreadLocalContext();
+    }
+
     private static final class TestPrincipal implements Principal
     {
         @Override