diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-22 23:17:35 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-22 23:17:35 +0300 |
commit | 51e351cd1ac6727f29acb13826b60b862541dfcb (patch) | |
tree | 06d3b2531c03a2c5d357d1786d5615ba157a2425 /internal/httptransport | |
parent | c494cbb93ed7cb2fd64233073025d73964807d0c (diff) |
lint: remove outdated nolint directives
Diffstat (limited to 'internal/httptransport')
-rw-r--r-- | internal/httptransport/transport_test.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/httptransport/transport_test.go b/internal/httptransport/transport_test.go index 7fce1b15..feaf63b6 100644 --- a/internal/httptransport/transport_test.go +++ b/internal/httptransport/transport_test.go @@ -58,7 +58,6 @@ func Test_withRoundTripper(t *testing.T) { mtr := &meteredRoundTripper{next: next, durations: histVec, counter: counterVec, ttfbTimeout: DefaultTTFBTimeout} r := httptest.NewRequest("GET", "/", nil) - // nolint:bodyclose // res.Body is nil res, err := mtr.RoundTrip(r) if tt.err != nil { counterCount := testutil.ToFloat64(counterVec.WithLabelValues("error")) @@ -91,7 +90,6 @@ func TestRoundTripTTFBTimeout(t *testing.T) { req, err := http.NewRequest("GET", "https://gitlab.com", nil) require.NoError(t, err) - // nolint:bodyclose // res is nil res, err := mtr.RoundTrip(req) require.Nil(t, res) require.True(t, errors.Is(err, context.Canceled), "context must have been canceled after ttfb timeout") |