diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-05 09:22:32 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-05 09:22:32 -0800 |
commit | 5582a0590905393b4e6d0b0d3e586863f17f52ae (patch) | |
tree | 2c5fd5f76d6ee0d42c2889b768beb646a9999836 /api | |
parent | ed178457cd4f2107d858e902e6fd5d13169bd16a (diff) | |
download | chat-5582a0590905393b4e6d0b0d3e586863f17f52ae.tar.gz chat-5582a0590905393b4e6d0b0d3e586863f17f52ae.tar.bz2 chat-5582a0590905393b4e6d0b0d3e586863f17f52ae.zip |
Fixing unit test
Diffstat (limited to 'api')
-rw-r--r-- | api/channel_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/channel_test.go b/api/channel_test.go index 78b179645..befd5615b 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -147,7 +147,7 @@ func TestUpdateChannel(t *testing.T) { userChannelAdmin := &model.User{TeamId: team.Id, Email: model.NewId() + "corey@test.com", FullName: "Corey Hulen", Password: "pwd"} userChannelAdmin = Client.Must(Client.CreateUser(userChannelAdmin, "")).Data.(*model.User) - Srv.Store.User().VerifyEmail(userChannelAdmin.Id) + <-Srv.Store.User().VerifyEmail(userChannelAdmin.Id) userStd := &model.User{TeamId: team.Id, Email: model.NewId() + "corey@test.com", FullName: "Corey Hulen", Password: "pwd"} userStd = Client.Must(Client.CreateUser(userStd, "")).Data.(*model.User) @@ -459,7 +459,7 @@ func TestDeleteChannel(t *testing.T) { userChannelAdmin := &model.User{TeamId: team.Id, Email: model.NewId() + "corey@test.com", FullName: "Corey Hulen", Password: "pwd"} userChannelAdmin = Client.Must(Client.CreateUser(userChannelAdmin, "")).Data.(*model.User) - Srv.Store.User().VerifyEmail(userChannelAdmin.Id) + <-Srv.Store.User().VerifyEmail(userChannelAdmin.Id) Client.LoginByEmail(team.Domain, userChannelAdmin.Email, "pwd") @@ -608,7 +608,7 @@ func TestRemoveChannelMember(t *testing.T) { userChannelAdmin := &model.User{TeamId: team.Id, Email: model.NewId() + "corey@test.com", FullName: "Corey Hulen", Password: "pwd"} userChannelAdmin = Client.Must(Client.CreateUser(userChannelAdmin, "")).Data.(*model.User) - Srv.Store.User().VerifyEmail(userChannelAdmin.Id) + <-Srv.Store.User().VerifyEmail(userChannelAdmin.Id) Client.LoginByEmail(team.Domain, userChannelAdmin.Email, "pwd") |