Unverified Commit 74f779fb authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #69087 from tanshanshan/error926

make sure to check for errors and close the request body in the cluster size autoscaling e2e test
parents 173846b0 65af391e
......@@ -1195,6 +1195,11 @@ func executeHTTPRequest(method string, url string, body string) (string, error)
return "", err
}
resp, err := client.Do(req)
if err != nil {
return "", err
}
defer resp.Body.Close()
respBody, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment