fixing unit tests
Этот коммит содержится в:
@@ -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 := &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)
|
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")
|
Client.LoginByEmail(team.Domain, user.Email, "pwd")
|
||||||
|
|
||||||
|
|||||||
@@ -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 := &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)
|
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 {
|
if _, err := Client.UpdateUser(user); err == nil {
|
||||||
t.Fatal("Should have errored")
|
t.Fatal("Should have errored")
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user