diff --git a/httptransport/client/matcher_test.go b/httptransport/client/matcher_test.go index 3c2496e201..629ce99b24 100644 --- a/httptransport/client/matcher_test.go +++ b/httptransport/client/matcher_test.go @@ -1,7 +1,6 @@ package client_test import ( - "context" "encoding/json" "net/http" "net/http/httptest" @@ -21,8 +20,7 @@ import ( // TestDiffer puts the Differ methods of the client through its paces. func TestDiffer(t *testing.T) { - ctx, done := context.WithCancel(context.Background()) - defer done() + ctx := t.Context() t.Run("OK", func(t *testing.T) { t.Run("Delete", func(t *testing.T) {