Fix lint and failing tests

This commit is contained in:
Viktor Liu
2026-02-12 18:19:13 +01:00
parent 57d3ee5aac
commit eea7687ddf
4 changed files with 11 additions and 6 deletions
+3
View File
@@ -53,6 +53,9 @@ func TestMetrics_RoundTripper(t *testing.T) {
t.Run(name, func(t *testing.T) {
rt := m.RoundTripper(test.roundTripper)
res, err := rt.RoundTrip(test.request)
if res != nil && res.Body != nil {
defer res.Body.Close()
}
if diff := cmp.Diff(test.err, err); diff != "" {
t.Errorf("Incorrect error (-want +got):\n%s", diff)
}