summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-02-01 08:35:08 -0800
committer=Corey Hulen <corey@hulen.com>2016-02-01 08:35:08 -0800
commit1006e99859d65094d2a7818781faa47bf2eab2a5 (patch)
tree96967d659d55770c352c51290ae0e9204f748266 /api/oauth_test.go
parenta6d2c2c2d943a88890087ccff3282481f1e44114 (diff)
downloadchat-1006e99859d65094d2a7818781faa47bf2eab2a5.tar.gz
chat-1006e99859d65094d2a7818781faa47bf2eab2a5.tar.bz2
chat-1006e99859d65094d2a7818781faa47bf2eab2a5.zip
Fixing email unit tests
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 7d825ef5a..57772ccc5 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@test.com", Password: "pwd"}
+ user := model.User{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.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@test.com", Password: "pwd"}
+ user := model.User{TeamId: rteam.Data.(*model.Team).Id, Email: strings.ToLower(model.NewId()) + "success+test@simulator.amazonses.com", Password: "pwd"}
ruser := Client.Must(Client.CreateUser(&user, "")).Data.(*model.User)
store.Must(Srv.Store.User().VerifyEmail(ruser.Id))