diff --git a/internal/db/repositories_test.go b/internal/db/repositories_test.go index 132c30496d..416c52229b 100644 --- a/internal/db/repositories_test.go +++ b/internal/db/repositories_test.go @@ -44,7 +44,7 @@ func createRandomRepository(t *testing.T, project uuid.UUID, prov string, opts . ProjectID: project, RepoOwner: rand.RandomName(seed), RepoName: rand.RandomName(seed), - RepoID: int32(rand.RandomInt(0, 2000, seed)), + RepoID: int32(rand.RandomInt(0, 5000, seed)), IsPrivate: false, IsFork: false, WebhookID: sql.NullInt32{Int32: int32(rand.RandomInt(0, 1000, seed)), Valid: true}, @@ -62,7 +62,7 @@ func createRandomRepository(t *testing.T, project uuid.UUID, prov string, opts . _, err := testQueries.GetRepositoryByRepoID(context.Background(), arg.RepoID) if err != sql.ErrNoRows { seed++ - arg.RepoID = int32(rand.RandomInt(0, 2000, seed)) + arg.RepoID = int32(rand.RandomInt(0, 5000, seed)) } else { break }