From 5afefe6b4db5094a7aa568e3cdc57c88a8e61549 Mon Sep 17 00:00:00 2001 From: Chris Quigley Date: Thu, 5 Dec 2024 15:14:04 -0500 Subject: [PATCH] Improve comments, remove error checks --- http/handler_store_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/http/handler_store_test.go b/http/handler_store_test.go index 71a1d8b4e3..f2d1993745 100644 --- a/http/handler_store_test.go +++ b/http/handler_store_test.go @@ -135,11 +135,7 @@ func TestExecRequest_HttpGet_WithOperationName(t *testing.T) { err = json.Unmarshal(resData, &gqlResponse) require.NoError(t, err) - // errors should be omitted - _, ok := gqlResponse["errors"] - assert.False(t, ok) - - // Compare the response data to the expected output + // Ensure the response data contains names, but not the _docID field expectedJSON := `{ "data": { "User": [ @@ -186,11 +182,7 @@ func TestExecRequest_HttpGet_WithVariables(t *testing.T) { err = json.Unmarshal(resData, &gqlResponse) require.NoError(t, err) - // errors should be omitted - _, ok := gqlResponse["errors"] - assert.False(t, ok) - - // Compare the response data to the expected output + // Ensure only bob is returned, because of the filter variable expectedJSON := `{ "data": { "User": [