aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/graphql_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-07 01:00:32 +0100
committerGitHub <noreply@github.com>2020-02-07 01:00:32 +0100
commit1a3cbdc4185c50a5896f84c6c7103aac9bf97105 (patch)
tree3a38fab6533b60631d2d2df31333d2c7c05535bb /graphql/graphql_test.go
parentf093be96e98284580d61664adecd0a2ff8b354e4 (diff)
parent2ebf43c988c73dcd9f5471622c0d1a466f454c37 (diff)
downloadgit-bug-1a3cbdc4185c50a5896f84c6c7103aac9bf97105.tar.gz
Merge pull request #305 from MichaelMure/gomod
migrate to go modules, update gqlgen
Diffstat (limited to 'graphql/graphql_test.go')
-rw-r--r--graphql/graphql_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go
index 6784df96..4bab7f58 100644
--- a/graphql/graphql_test.go
+++ b/graphql/graphql_test.go
@@ -1,10 +1,9 @@
package graphql
import (
- "net/http/httptest"
"testing"
- "github.com/vektah/gqlgen/client"
+ "github.com/99designs/gqlgen/client"
"github.com/MichaelMure/git-bug/graphql/models"
"github.com/MichaelMure/git-bug/misc/random_bugs"
@@ -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 {