diff options
author | Sven Dowideit <[email protected]> | 2021-01-14 11:30:49 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-13 18:30:49 -0700 |
commit | f0c0f38ba57ec7f01839a811d29cb9c5187ad726 (patch) | |
tree | da09a21b8abcd326e60822653e61f1f621e4e6a7 /caddytest/caddytest.go | |
parent | 59071ea15d2aacb69fcfc088f4996717cd2bfc73 (diff) | |
download | caddy-f0c0f38ba57ec7f01839a811d29cb9c5187ad726.tar.gz caddy-f0c0f38ba57ec7f01839a811d29cb9c5187ad726.zip |
tests: use actual admin port value in error message (#3973)
Signed-off-by: Sven Dowideit <[email protected]>
Diffstat (limited to 'caddytest/caddytest.go')
-rw-r--r-- | caddytest/caddytest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go index 4076bd5aa..c4c268768 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() |