From 0eb5640edb88f22492ecc6c586db6970ed5458a4 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 3 Nov 2025 15:31:05 +0000 Subject: [PATCH] test(pkg/httpmock): ignore `bodyclose` on mock response value Signed-off-by: Babak K. Shandiz --- pkg/httpmock/stub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/httpmock/stub.go b/pkg/httpmock/stub.go index f15423c84..a5444b2c8 100644 --- a/pkg/httpmock/stub.go +++ b/pkg/httpmock/stub.go @@ -249,6 +249,7 @@ func GraphQLQuery(body string, cb func(string, map[string]interface{})) Responde // ScopesResponder returns a response with a 200 status code and the given OAuth scopes. func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error) { + //nolint:bodyclose return StatusScopesResponder(http.StatusOK, scopes) }