diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-03 12:04:15 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-03-03 12:04:15 -0500 |
commit | 2e911b77c3386833f8f0cea82c7b6b3e5583a08e (patch) | |
tree | 63c515b41e5abf024e94658554a02acaf40710df /api/status_test.go | |
parent | 09ee8e8a58df9526c619ac80cd76bca8cf4ca107 (diff) | |
download | chat-2e911b77c3386833f8f0cea82c7b6b3e5583a08e.tar.gz chat-2e911b77c3386833f8f0cea82c7b6b3e5583a08e.tar.bz2 chat-2e911b77c3386833f8f0cea82c7b6b3e5583a08e.zip |
Usernames must start with a letter (#5581)
Diffstat (limited to 'api/status_test.go')
-rw-r--r-- | api/status_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/status_test.go b/api/status_test.go index 34c3320bd..30bf8d16a 100644 --- a/api/status_test.go +++ b/api/status_test.go @@ -32,12 +32,12 @@ func TestStatuses(t *testing.T) { team := model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN} rteam, _ := Client.CreateTeam(&team) - user := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1"} + user := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1", Username: "n" + model.NewId()} ruser := Client.Must(Client.CreateUser(&user, "")).Data.(*model.User) LinkUserToTeam(ruser, rteam.Data.(*model.Team)) store.Must(app.Srv.Store.User().VerifyEmail(ruser.Id)) - user2 := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1"} + user2 := model.User{Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Nickname: "Corey Hulen", Password: "passwd1", Username: "n" + model.NewId()} ruser2 := Client.Must(Client.CreateUser(&user2, "")).Data.(*model.User) LinkUserToTeam(ruser2, rteam.Data.(*model.Team)) store.Must(app.Srv.Store.User().VerifyEmail(ruser2.Id)) |