diff --git a/test/e2e/apps/daemon_restart.go b/test/e2e/apps/daemon_restart.go index d674fa0e36a..de1ad4be7f0 100644 --- a/test/e2e/apps/daemon_restart.go +++ b/test/e2e/apps/daemon_restart.go @@ -107,10 +107,10 @@ func (r *RestartDaemonConfig) waitUp(ctx context.Context) { var healthzCheck string if r.enableHTTPS { healthzCheck = fmt.Sprintf( - "curl -sk -o %v -I -w \"%%{http_code}\" https://127.0.0.1:%v/healthz", nullDev, r.healthzPort) + "curl -sk -o %v -I -w \"%%{http_code}\" https://localhost:%v/healthz", nullDev, r.healthzPort) } else { healthzCheck = fmt.Sprintf( - "curl -s -o %v -I -w \"%%{http_code}\" http://127.0.0.1:%v/healthz", nullDev, r.healthzPort) + "curl -s -o %v -I -w \"%%{http_code}\" http://localhost:%v/healthz", nullDev, r.healthzPort) }