Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-03-23 07:36:48 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-03-23 07:38:02 +0300
commitc07661daf1c4d5ac64d25d67e8f707bbfe36ea54 (patch)
treec034d699fddf6ebe956e4e4598aa46195b7f9a86 /test/acceptance
parent575fec0d865d576c295aa7263d190744bd0a0328 (diff)
Add retriever config for tests
Adds default GitLab retriever configuration to acceptance tests, reducing execution time from ~30s to ~21s.
Diffstat (limited to 'test/acceptance')
-rw-r--r--test/acceptance/helpers_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index 1ece8148..6def0eb9 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -353,6 +353,13 @@ func getPagesArgs(t *testing.T, listeners []ListenSpec, promPort string, extraAr
args = append(args, "-pages-root", "../../shared/pages")
}
+ // default resolver configuration to execute tests faster
+ if !contains(extraArgs, "-gitlab-retrieval-") {
+ args = append(args, "-gitlab-retrieval-timeout", "50ms",
+ "-gitlab-retrieval-interval", "10ms",
+ "-gitlab-retrieval-retries", "1")
+ }
+
if promPort != "" {
args = append(args, "-metrics-address", promPort)
}