summaryrefslogtreecommitdiffstats
path: root/api/context_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-13 13:53:37 -0500
committerGitHub <noreply@github.com>2017-01-13 13:53:37 -0500
commit97558f6a6ec4c53fa69035fb430ead209d9c222d (patch)
tree6fc57f5b75b15a025348c6e295cea6aedb9e69ae /api/context_test.go
parent07bad4d6d518a9012a20fec8309cd625f57c7a8c (diff)
downloadchat-97558f6a6ec4c53fa69035fb430ead209d9c222d.tar.gz
chat-97558f6a6ec4c53fa69035fb430ead209d9c222d.tar.bz2
chat-97558f6a6ec4c53fa69035fb430ead209d9c222d.zip
PLT-4938 Add app package and move logic over from api package (#4931)
* Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
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{}