Skip to content

Commit 6e538d9

Browse files
Copilotlpcox
andauthored
test(proxy): assert exact graphql query forwarding URI
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 be9e218 commit 6e538d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/proxy/handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func TestServeHTTP_GraphQLQueryStringForwardedToUpstream(t *testing.T) {
211211
h.ServeHTTP(w, req)
212212

213213
assert.Equal(t, http.StatusOK, w.Code)
214-
assert.Contains(t, receivedURL, "foo=bar")
214+
assert.Equal(t, "/graphql?foo=bar", receivedURL)
215215
}
216216

217217
// ─── ServeHTTP: query string is forwarded on REST GET ────────────────────────

0 commit comments

Comments
 (0)