From 8c80cdde38cceb3424b2b1f43eadf7a1aab0c6df Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 27 Sep 2017 11:52:34 -0500 Subject: remove remaining Global() calls (outside of tests) (#7521) --- api/cli_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api/cli_test.go') diff --git a/api/cli_test.go b/api/cli_test.go index 8c7381290..14645f35c 100644 --- a/api/cli_test.go +++ b/api/cli_test.go @@ -8,7 +8,6 @@ import ( "strings" "testing" - "github.com/mattermost/mattermost-server/app" "github.com/mattermost/mattermost-server/model" ) @@ -96,7 +95,7 @@ func TestCliCreateUserWithoutTeam(t *testing.T) { t.SkipNow() } - Setup() + th := Setup() id := model.NewId() email := "success+" + id + "@simulator.amazonses.com" username := "name" + id @@ -108,7 +107,7 @@ func TestCliCreateUserWithoutTeam(t *testing.T) { t.Fatal(err) } - if result := <-app.Global().Srv.Store.User().GetByEmail(email); result.Err != nil { + if result := <-th.App.Srv.Store.User().GetByEmail(email); result.Err != nil { t.Fatal() } else { user := result.Data.(*model.User) -- cgit v1.2.3-1-g7c22