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 'acceptance_test.go')
-rw-r--r--acceptance_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/acceptance_test.go b/acceptance_test.go
index fe41a894..29a6928d 100644
--- a/acceptance_test.go
+++ b/acceptance_test.go
@@ -21,7 +21,7 @@ import (
)
var pagesBinary = flag.String("gitlab-pages-binary", "./gitlab-pages", "Path to the gitlab-pages binary")
-var accessControlConfigFile string
+var configFile string
// TODO: Use TCP port 0 everywhere to avoid conflicts. The binary could output
// the actual port (and type of listener) for us to read in place of the
@@ -70,11 +70,11 @@ func skipUnlessEnabled(t *testing.T, conditions ...string) {
func TestMain(m *testing.M) {
var err error
- accessControlConfigFile, err = accessControlConfig("clientID", "clientSecret", "authSecret")
+ configFile, err = accessControlConfig("clientID", "clientSecret", "authSecret")
if err != nil {
log.Fatal(err)
}
- defer os.Remove(accessControlConfigFile)
+ defer os.Remove(configFile)
os.Exit(m.Run())
}
@@ -695,7 +695,7 @@ func TestPrivateArtifactProxyRequest(t *testing.T) {
listeners,
"",
certFile,
- "-config="+accessControlConfigFile,
+ "-config="+configFile,
"-artifacts-server="+artifactServerURL,
"-auth-server="+testServer.URL,
"-auth-redirect-uri=https://projects.gitlab-example.com/auth",