diff options
Diffstat (limited to 'graphql/graphql_test.go')
-rw-r--r-- | graphql/graphql_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index 6a4ceca3..4bab7f58 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -1,7 +1,6 @@ package graphql import ( - "net/http/httptest" "testing" "github.com/99designs/gqlgen/client" @@ -22,8 +21,7 @@ func TestQueries(t *testing.T) { t.Fatal(err) } - srv := httptest.NewServer(handler) - c := client.New(srv.URL) + c := client.New(handler) query := ` query { |