From 6eebedaef98e4d4628d8d4b4c58f348078695c7b Mon Sep 17 00:00:00 2001 From: Jan Hutar Date: Mon, 11 Nov 2024 14:33:10 +0100 Subject: [PATCH] feat: Forks should be quick --- pkg/clients/github/repositories.go | 2 +- tests/load-tests/pkg/journey/handle_repo_templating.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/clients/github/repositories.go b/pkg/clients/github/repositories.go index e59661c1e..3ec3f4655 100644 --- a/pkg/clients/github/repositories.go +++ b/pkg/clients/github/repositories.go @@ -196,7 +196,7 @@ func (g *Github) ForkRepository(sourceName, targetName string) (*github.Reposito return false, fmt.Errorf("Error forking %s/%s: %v", g.organization, sourceName, err) } return true, nil - }, time.Second * 2, time.Minute * 30) + }, time.Second * 2, time.Minute * 5) if err1 != nil { return nil, fmt.Errorf("Failed waiting for repo %s/%s: %v", g.organization, sourceName, err1) } diff --git a/tests/load-tests/pkg/journey/handle_repo_templating.go b/tests/load-tests/pkg/journey/handle_repo_templating.go index f32dcd384..bca74f9b0 100644 --- a/tests/load-tests/pkg/journey/handle_repo_templating.go +++ b/tests/load-tests/pkg/journey/handle_repo_templating.go @@ -94,7 +94,7 @@ func ForkRepo(f *framework.Framework, repoUrl, repoRevision, username string) (s return false, nil } return true, nil - }, time.Second * 20, time.Minute * 60) + }, time.Second * 20, time.Minute * 10) if err != nil { return "", err }