From 07777f5ff9e0bde26abd0288164e5f73b6da992a Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 4 Oct 2017 13:09:41 -0700 Subject: Fix races / finally remove global app for good (#7570) * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up --- app/session_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/session_test.go') diff --git a/app/session_test.go b/app/session_test.go index c001655db..5915b932d 100644 --- a/app/session_test.go +++ b/app/session_test.go @@ -15,6 +15,7 @@ import ( func TestCache(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() session := &model.Session{ Id: model.NewId(), @@ -39,6 +40,7 @@ func TestCache(t *testing.T) { func TestGetSessionIdleTimeoutInMinutes(t *testing.T) { th := Setup().InitBasic() + defer th.TearDown() session := &model.Session{ UserId: model.NewId(), -- cgit v1.2.3-1-g7c22