From 026553e4f87bfc647a5c03129752e30fc523fa07 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 6 Dec 2016 10:49:34 -0500 Subject: Improving command line interface (#4689) --- web/web_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'web') diff --git a/web/web_test.go b/web/web_test.go index bdf63877c..812fa4239 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -24,6 +24,8 @@ func Setup() { utils.LoadConfig("config.json") utils.InitTranslations(utils.Cfg.LocalizationSettings) api.NewServer() + api.InitStores() + api.InitRouter() api.StartServer() api.InitApi() InitWeb() @@ -206,10 +208,7 @@ func TestIncomingWebhook(t *testing.T) { store.Must(api.Srv.Store.User().VerifyEmail(user.Id)) api.JoinUserToTeam(team, user) - c := &api.Context{} - c.RequestId = model.NewId() - c.IpAddress = "cmd_line" - api.UpdateUserRoles(c, user, model.ROLE_SYSTEM_ADMIN.Id) + api.UpdateUserRoles(user, model.ROLE_SYSTEM_ADMIN.Id) ApiClient.Login(user.Email, "passwd1") ApiClient.SetTeamId(team.Id) -- cgit v1.2.3-1-g7c22