summaryrefslogtreecommitdiffstats
path: root/api/context_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/context_test.go')
-rw-r--r--api/context_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/api/context_test.go b/api/context_test.go
index 2227b7f65..cd6ca01aa 100644
--- a/api/context_test.go
+++ b/api/context_test.go
@@ -4,32 +4,9 @@
package api
import (
- "github.com/mattermost/platform/model"
"testing"
)
-func TestCache(t *testing.T) {
- session := &model.Session{
- Id: model.NewId(),
- Token: model.NewId(),
- UserId: model.NewId(),
- }
-
- sessionCache.AddWithExpiresInSecs(session.Token, session, 5*60)
-
- keys := sessionCache.Keys()
- if len(keys) <= 0 {
- t.Fatal("should have items")
- }
-
- RemoveAllSessionsForUserId(session.UserId)
-
- rkeys := sessionCache.Keys()
- if len(rkeys) != len(keys)-1 {
- t.Fatal("should have one less")
- }
-}
-
func TestSiteURL(t *testing.T) {
c := &Context{}