diff --git a/internal/proxy/handler_test.go b/internal/proxy/handler_test.go index f45bb7bb..f8d7484c 100644 --- a/internal/proxy/handler_test.go +++ b/internal/proxy/handler_test.go @@ -195,8 +195,10 @@ func TestServeHTTP_GraphQLPreservesQueryString(t *testing.T) { wantPath string }{ {name: "graphql path", path: "/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, - {name: "ghes api graphql path", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, - {name: "gh host prefixed graphql path", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, + {name: "ghes api graphql path", path: "/api/graphql", wantPath: "/graphql"}, + {name: "ghes api graphql path with query", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, + {name: "gh host prefixed graphql path", path: "/api/v3/graphql", wantPath: "/graphql"}, + {name: "gh host prefixed graphql path with query", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"}, } for _, tt := range tests {