summaryrefslogtreecommitdiffstats
path: root/api/cli_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/cli_test.go')
-rw-r--r--api/cli_test.go5
1 files changed, 2 insertions, 3 deletions
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)