diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-08 23:13:05 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-08 23:13:05 -0600 |
commit | 25538df397f46d03b99a4b492bcef7cf68859a8a (patch) | |
tree | 9d77bddbe34a2b5823a5e9beacc4fe0e0ae342e9 /web/web_test.go | |
parent | c3930cb609203a07a5af2850715a009dc5d3893b (diff) | |
download | chat-25538df397f46d03b99a4b492bcef7cf68859a8a.tar.gz chat-25538df397f46d03b99a4b492bcef7cf68859a8a.tar.bz2 chat-25538df397f46d03b99a4b492bcef7cf68859a8a.zip |
Fixing unit tests
Diffstat (limited to 'web/web_test.go')
-rw-r--r-- | web/web_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/web_test.go b/web/web_test.go index 8d40810b5..abe5ab2f1 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -193,6 +193,10 @@ func TestIncomingWebhook(t *testing.T) { user = ApiClient.Must(ApiClient.CreateUser(user, "")).Data.(*model.User) store.Must(api.Srv.Store.User().VerifyEmail(user.Id)) + c := &api.Context{} + c.RequestId = model.NewId() + c.IpAddress = "cmd_line" + api.UpdateRoles(c, user, model.ROLE_SYSTEM_ADMIN) ApiClient.LoginByEmail(team.Name, user.Email, "pwd") channel1 := &model.Channel{DisplayName: "Test API Name", Name: "a" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id} |