diff --git a/pkg/apiserver/handlers_test.go b/pkg/apiserver/handlers_test.go index 5128dd5e02d..4151689827b 100644 --- a/pkg/apiserver/handlers_test.go +++ b/pkg/apiserver/handlers_test.go @@ -43,6 +43,7 @@ func expectHTTP(url string, code int, t *testing.T) { r, err := http.Get(url) if err != nil { t.Errorf("unexpected error: %v", err) + return } if r.StatusCode != code { t.Errorf("unexpected response: %v", r.StatusCode)