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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app_test.go b/app_test.go
index 483ffb39..3b476bdb 100644
--- a/app_test.go
+++ b/app_test.go
@@ -13,7 +13,7 @@ import (
"gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/internal/request"
- "gitlab.com/gitlab-org/gitlab-pages/internal/source"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/source/gitlab"
)
func Test_setRequestScheme(t *testing.T) {
@@ -92,7 +92,7 @@ func TestHealthCheckMiddleware(t *testing.T) {
JWTTokenExpiration: time.Second,
}
- domains, err := source.NewDomains(&validCfg)
+ source, err := gitlab.New(&validCfg)
require.NoError(t, err)
cfg := config.Config{
@@ -102,8 +102,8 @@ func TestHealthCheckMiddleware(t *testing.T) {
}
app := theApp{
- config: &cfg,
- domains: domains,
+ config: &cfg,
+ source: source,
}
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {