summaryrefslogtreecommitdiff
path: root/caddytest/caddytest.go
diff options
context:
space:
mode:
authorSven Dowideit <SvenDowideit@home.org.au>2021-01-14 11:30:49 +1000
committerGitHub <noreply@github.com>2021-01-13 18:30:49 -0700
commitf0c0f38ba57ec7f01839a811d29cb9c5187ad726 (patch)
treeda09a21b8abcd326e60822653e61f1f621e4e6a7 /caddytest/caddytest.go
parent59071ea15d2aacb69fcfc088f4996717cd2bfc73 (diff)
tests: use actual admin port value in error message (#3973)
Signed-off-by: Sven Dowideit <sven.dowideit@csiro.au>
Diffstat (limited to 'caddytest/caddytest.go')
-rw-r--r--caddytest/caddytest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go
index 4076bd5..c4c2687 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -223,7 +223,7 @@ func isCaddyAdminRunning() error {
}
resp, err := client.Get(fmt.Sprintf("http://localhost:%d/config/", Default.AdminPort))
if err != nil {
- return errors.New("caddy integration test caddy server not running. Expected to be listening on localhost:2019")
+ return fmt.Errorf("caddy integration test caddy server not running. Expected to be listening on localhost:%d", Default.AdminPort)
}
resp.Body.Close()