summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-12-06 10:49:34 -0500
committerGitHub <noreply@github.com>2016-12-06 10:49:34 -0500
commit026553e4f87bfc647a5c03129752e30fc523fa07 (patch)
treed5403c760151c0fa26fc6d020f7f4326ea9d6f8a /web
parentdcf11a14d8363c79ab62aefca46834d6daa615ab (diff)
downloadchat-026553e4f87bfc647a5c03129752e30fc523fa07.tar.gz
chat-026553e4f87bfc647a5c03129752e30fc523fa07.tar.bz2
chat-026553e4f87bfc647a5c03129752e30fc523fa07.zip
Improving command line interface (#4689)
Diffstat (limited to 'web')
-rw-r--r--web/web_test.go7
1 files changed, 3 insertions, 4 deletions
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)