summaryrefslogtreecommitdiffstats
path: root/app/session_test.go
diff options
context:
space:
mode:
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 {