summaryrefslogtreecommitdiffstats
path: root/app/session_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-19 18:31:35 -0500
committerGitHub <noreply@github.com>2017-09-19 18:31:35 -0500
commitac74066f0e4f3d62f2d4645c3fa34b88c13958d1 (patch)
tree9e1cb80eae1b4a2e9dcc2272744c4a9db1b4b804 /app/session_test.go
parent7e4ff6adcccc4cc5a8fb8cfa853417ec52bf78f4 (diff)
downloadchat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.tar.gz
chat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.tar.bz2
chat-ac74066f0e4f3d62f2d4645c3fa34b88c13958d1.zip
remove einterface gets (#7455)
Diffstat (limited to 'app/session_test.go')
-rw-r--r--app/session_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/session_test.go b/app/session_test.go
index b4fa42330..e91132a8a 100644
--- a/app/session_test.go
+++ b/app/session_test.go
@@ -10,6 +10,8 @@ import (
)
func TestCache(t *testing.T) {
+ th := Setup().InitBasic()
+
session := &model.Session{
Id: model.NewId(),
Token: model.NewId(),
@@ -23,7 +25,7 @@ func TestCache(t *testing.T) {
t.Fatal("should have items")
}
- ClearSessionCacheForUser(session.UserId)
+ th.App.ClearSessionCacheForUser(session.UserId)
rkeys := sessionCache.Keys()
if len(rkeys) != len(keys)-1 {