From 3e81ffbb11454a54766a5d849e090c3a4621071f Mon Sep 17 00:00:00 2001 From: UnAfraid Date: Mon, 30 Oct 2023 21:16:54 +0200 Subject: [PATCH] Close response body --- graphql/playground/helper_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/graphql/playground/helper_test.go b/graphql/playground/helper_test.go index 050427c9e8..ad11971686 100644 --- a/graphql/playground/helper_test.go +++ b/graphql/playground/helper_test.go @@ -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) }