diff options
Diffstat (limited to 'helpers_test.go')
-rw-r--r-- | helpers_test.go | 3 |
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) } |