Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-02-03 22:39:46 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-02-03 22:52:19 +0300
commitb7d42ef5004b59d1885dcd332eaab64805d2578c (patch)
treea7167159ae9808b82bc88c114ffd7afd9773ecf3 /internal/httptransport
parentf2fd9a8e0b4778991adf054ef8f3a7244200a60d (diff)
test: migrate to assertions using modern error checking
Diffstat (limited to 'internal/httptransport')
-rw-r--r--internal/httptransport/transport_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/httptransport/transport_test.go b/internal/httptransport/transport_test.go
index feaf63b6..a51e7a02 100644
--- a/internal/httptransport/transport_test.go
+++ b/internal/httptransport/transport_test.go
@@ -2,7 +2,6 @@ package httptransport
import (
"context"
- "errors"
"fmt"
"net/http"
"net/http/httptest"
@@ -92,7 +91,7 @@ func TestRoundTripTTFBTimeout(t *testing.T) {
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")
+ require.ErrorIs(t, err, context.Canceled, "context must have been canceled after ttfb timeout")
}
func newTestMetrics(t *testing.T) (*prometheus.HistogramVec, *prometheus.CounterVec) {