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 'helpers_test.go')
-rw-r--r--helpers_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers_test.go b/helpers_test.go
index c1d1bf34..9f372224 100644
--- a/helpers_test.go
+++ b/helpers_test.go
@@ -10,6 +10,7 @@ import (
"net/http"
"os"
"os/exec"
+ "strings"
"testing"
"time"
@@ -113,6 +114,8 @@ func (l ListenSpec) URL(suffix string) string {
scheme = "https"
}
+ suffix = strings.TrimPrefix(suffix, "/")
+
return fmt.Sprintf("%s://%s/%s", scheme, l.JoinHostPort(), suffix)
}