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:
Diffstat (limited to 'app_test.go')
-rw-r--r--app_test.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/app_test.go b/app_test.go
index 48c981cf..48a6013b 100644
--- a/app_test.go
+++ b/app_test.go
@@ -87,16 +87,15 @@ func TestHealthCheckMiddleware(t *testing.T) {
cfg, err := config.LoadConfig()
require.NoError(t, err)
cfg.General.StatusPath = "/-/healthcheck"
- cfg.General.DomainConfigurationSource = "auto"
+
+ domains, err := source.NewDomains("auto", &cfg.GitLab)
+ require.NoError(t, err)
app := theApp{
- config: cfg,
+ config: cfg,
+ domains: domains,
}
- domains, err := source.NewDomains(app.config)
- require.NoError(t, err)
- app.domains = domains
-
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
io.WriteString(w, "Hello from inner handler")