summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 14:21:23 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 14:21:23 -0800
commite7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0 (patch)
tree133188de65432b9e56f8739bce48888cf36e53df /api/oauth_test.go
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
downloadchat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.gz
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.bz2
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.zip
Updated emails in unit tests to include '+'
Diffstat (limited to 'api/oauth_test.go')
-rw-r--r--api/oauth_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/oauth_test.go b/api/oauth_test.go
index 64d9c6fd9..7d825ef5a 100644
--- a/api/oauth_test.go
+++ b/api/oauth_test.go
@@ -18,7 +18,7 @@ func TestRegisterApp(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{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "corey@test.com", Password: "pwd"}
+ user := model.User{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "corey+test@test.com", Password: "pwd"}
ruser := Client.Must(Client.CreateUser(&user, "")).Data.(*model.User)
store.Must(Srv.Store.User().VerifyEmail(ruser.Id))
@@ -75,7 +75,7 @@ func TestAllowOAuth(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{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "corey@test.com", Password: "pwd"}
+ user := model.User{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "corey+test@test.com", Password: "pwd"}
ruser := Client.Must(Client.CreateUser(&user, "")).Data.(*model.User)
store.Must(Srv.Store.User().VerifyEmail(ruser.Id))