Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
sonatard committed Feb 13, 2020
1 parent 51b921f commit 9638ce0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions graphql/handler/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/vektah/gqlparser/gqlerror"
"github.com/vektah/gqlparser/parser"
)

func TestServer(t *testing.T) {
srv := testserver.New()
srv.AddTransport(&transport.GET{})
Expand Down Expand Up @@ -138,7 +139,6 @@ func TestServer(t *testing.T) {
require.Equal(t, "Bar", cacheDoc.(*ast.QueryDocument).Operations[0].Name)
})
})

}

func TestErrorServer(t *testing.T) {
Expand All @@ -160,10 +160,8 @@ func TestErrorServer(t *testing.T) {
assert.Equal(t, 1, len(errors1))
assert.Equal(t, 1, len(errors2))
})

}


func get(handler http.Handler, target string) *httptest.ResponseRecorder {
r := httptest.NewRequest("GET", target, nil)
w := httptest.NewRecorder()
Expand Down
1 change: 0 additions & 1 deletion graphql/handler/testserver/testserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ func (s *TestServer) SendNextSubscriptionMessage() {
case <-time.After(1 * time.Second):
fmt.Println("WARNING: no active subscription")
}

}

func (s *TestServer) SetCalculatedComplexity(complexity int) {
Expand Down

0 comments on commit 9638ce0

Please sign in to comment.