Skip to content

Commit be9e218

Browse files
Copilotlpcox
andauthored
test(proxy): handle write errors in graphql query forwarding test
Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/4809eb86-df75-49ee-94fe-225e87c3467d Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent f35254a commit be9e218

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/proxy/handler_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ func TestServeHTTP_GraphQLQueryStringForwardedToUpstream(t *testing.T) {
194194
receivedURL = r.URL.RequestURI()
195195
w.Header().Set("Content-Type", "application/json")
196196
w.WriteHeader(http.StatusOK)
197-
w.Write([]byte(`{"data":{"repository":{"issues":{"nodes":[]}}}}`)) //nolint:errcheck
197+
_, err := w.Write([]byte(`{"data":{"repository":{"issues":{"nodes":[]}}}}`))
198+
require.NoError(t, err)
198199
}))
199200
defer upstream.Close()
200201

0 commit comments

Comments
 (0)