Skip to content

Commit

Permalink
Close response body
Browse files Browse the repository at this point in the history
  • Loading branch information
UnAfraid committed Oct 30, 2023
1 parent 21967a1 commit 3e81ffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graphql/playground/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func assertNodesIntegrity(t *testing.T, baseUrl string, doc *goquery.Document, s
hasher := sha256.New()
_, err = io.Copy(hasher, resp.Body)
assert.NoError(t, err)
assert.NoError(t, resp.Body.Close())
actual := "sha256-" + base64.StdEncoding.EncodeToString(hasher.Sum(nil))
assert.Equal(t, integrity, actual)
}
Expand Down

0 comments on commit 3e81ffb

Please sign in to comment.