Commit e477503c authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #18249 from mvdan/apiserver-test-close

Auto commit by PR queue bot
parents b266aa15 5ec087fa
......@@ -984,6 +984,7 @@ func TestList(t *testing.T) {
t.Errorf("%d: unexpected error: %v", i, err)
continue
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
t.Errorf("%d: unexpected status: %d from url %s, Expected: %d, %#v", i, resp.StatusCode, testCase.url, http.StatusOK, resp)
body, err := ioutil.ReadAll(resp.Body)
......
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