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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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() |
|
|
|
|
|
|
|