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 'test/gitlabstub/server.go')
-rw-r--r--test/gitlabstub/server.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/gitlabstub/server.go b/test/gitlabstub/server.go
index 5cf3dacf..74c75067 100644
--- a/test/gitlabstub/server.go
+++ b/test/gitlabstub/server.go
@@ -39,5 +39,8 @@ func NewUnstartedServer(opts ...Option) (*httptest.Server, error) {
router.PathPrefix("/").HandlerFunc(handleAccessControlArtifactRequests)
- return httptest.NewUnstartedServer(router), nil
+ s := httptest.NewUnstartedServer(router)
+ s.TLS = conf.tlsConfig
+
+ return s, nil
}