Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics/librato: ensure resp.body closed #26969

Merged
merged 16 commits into from
Mar 27, 2023
Merged
Prev Previous commit
Next Next commit
rpc: ensure resp.body.close
Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa committed Mar 24, 2023
commit ffed3463a62b65d6217f4aa60142e6671bb559a8
1 change: 1 addition & 0 deletions rpc/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func confirmHTTPRequestYieldsStatusCode(t *testing.T, method, contentType, body
if err != nil {
t.Fatalf("request failed: %v", err)
}
defer resp.Body.Close()
confirmStatusCode(t, resp.StatusCode, expectedStatusCode)
}

Expand Down