From da6e6ca0bf3f880b60de8d809a7588dfbec3a77a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 28 Jul 2017 13:48:34 -0400 Subject: Fix TestCreateOAuthUser unit test (#7034) --- app/user_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/user_test.go') diff --git a/app/user_test.go b/app/user_test.go index 76829caef..4c190c1b9 100644 --- a/app/user_test.go +++ b/app/user_test.go @@ -67,7 +67,7 @@ func TestCheckUserDomain(t *testing.T) { func TestCreateOAuthUser(t *testing.T) { th := Setup().InitBasic() r := rand.New(rand.NewSource(time.Now().UnixNano())) - glUser := oauthgitlab.GitLabUser{Id: int64(r.Intn(1000)), Username: model.NewId(), Email: model.NewId() + "@simulator.amazonses.com", Name: "Joram Wilander"} + glUser := oauthgitlab.GitLabUser{Id: int64(r.Intn(1000)) + 1, Username: "o" + model.NewId(), Email: model.NewId() + "@simulator.amazonses.com", Name: "Joram Wilander"} json := glUser.ToJson() user, err := CreateOAuthUser(model.USER_AUTH_SERVICE_GITLAB, strings.NewReader(json), th.BasicTeam.Id) -- cgit v1.2.3-1-g7c22