1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

tests: use actual admin port value in error message (#3973)

Signed-off-by: Sven Dowideit <sven.dowideit@csiro.au>
This commit is contained in:
Sven Dowideit 2021-01-14 11:30:49 +10:00 committed by GitHub
parent 59071ea15d
commit f0c0f38ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()