Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
tests: use actual admin port value in error message (#3973)
Signed-off-by: Sven Dowideit <sven.dowideit@csiro.au>
Sven Dowideit committed
Jan 14, 2021 at 11:30 UTC
f0c0f38ba57ec7f01839a811d29cb9c5187ad726
1 file changed
+1
-1
caddytest/caddytest.go
+1
-1
@@ -223,7 +223,7 @@ func isCaddyAdminRunning() error {
223
}
224
resp, err := client.Get(fmt.Sprintf("http://localhost:%d/config/", Default.AdminPort))
225
if err != nil {
226
- return errors.New("caddy integration test caddy server not running. Expected to be listening on localhost:2019")
226
+ return fmt.Errorf("caddy integration test caddy server not running. Expected to be listening on localhost:%d", Default.AdminPort)
227
}
228
resp.Body.Close()
229