Browse Source

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

Signed-off-by: Sven Dowideit <sven.dowideit@csiro.au>
master
Sven Dowideit 4 years ago
committed by GitHub
parent
commit
f0c0f38ba5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      caddytest/caddytest.go

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

Loading…
Cancel
Save