aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/graphql_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-05 23:42:49 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-05 23:42:49 +0100
commit7e48e0a9bebed113246e7883164c5d87eb936afb (patch)
tree15b343cc65083e3b6005b4659b83a0aefb817979 /graphql/graphql_test.go
parent1d4bb7ceb0cef79d68df0bacc913b01e40e6ddd6 (diff)
downloadgit-bug-7e48e0a9bebed113246e7883164c5d87eb936afb.tar.gz
upgrade to gqlgen master, waiting for a release
Diffstat (limited to 'graphql/graphql_test.go')
-rw-r--r--graphql/graphql_test.go4
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 {