test(pkg/httpmock): ignore bodyclose on mock response value
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
2709c39179
commit
0eb5640edb
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue