diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-05 09:13:06 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-05 09:13:06 -0800 |
commit | ed178457cd4f2107d858e902e6fd5d13169bd16a (patch) | |
tree | 3a0e17a47f39188b7966707100309075e12b4f50 | |
parent | ec2af296b25d6edef0fea54a8af02bed912c6e37 (diff) | |
download | chat-ed178457cd4f2107d858e902e6fd5d13169bd16a.tar.gz chat-ed178457cd4f2107d858e902e6fd5d13169bd16a.tar.bz2 chat-ed178457cd4f2107d858e902e6fd5d13169bd16a.zip |
fixing unit tests
-rw-r--r-- | api/channel_test.go | 2 | ||||
-rw-r--r-- | api/user_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/channel_test.go b/api/channel_test.go index 819368c41..78b179645 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -20,7 +20,7 @@ func TestCreateChannel(t *testing.T) { user := &model.User{TeamId: team.Id, Email: model.NewId() + "corey@test.com", FullName: "Corey Hulen", Password: "pwd"} user = Client.Must(Client.CreateUser(user, "")).Data.(*model.User) - <-<-Srv.Store.User().VerifyEmail(user.Id) + <-Srv.Store.User().VerifyEmail(user.Id) Client.LoginByEmail(team.Domain, user.Email, "pwd") diff --git a/api/user_test.go b/api/user_test.go index 8e15029ca..2a3a3c830 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -462,7 +462,7 @@ func TestUserUpdate(t *testing.T) { user := &model.User{TeamId: team.Id, Email: strings.ToLower(model.NewId()) + "corey@test.com", FullName: "Corey Hulen", Password: "pwd", LastActivityAt: time1, LastPingAt: time1, Roles: ""} user = Client.Must(Client.CreateUser(user, "")).Data.(*model.User) - <-<-Srv.Store.User().VerifyEmail(user.Id) + <-Srv.Store.User().VerifyEmail(user.Id) if _, err := Client.UpdateUser(user); err == nil { t.Fatal("Should have errored") |