From 9638ce0f33d314c9ca5a2154f0b901d26ee7c719 Mon Sep 17 00:00:00 2001 From: sonatard Date: Fri, 14 Feb 2020 02:08:12 +0900 Subject: [PATCH] Fix format --- graphql/handler/server_test.go | 4 +--- graphql/handler/testserver/testserver.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/graphql/handler/server_test.go b/graphql/handler/server_test.go index d6f789f013d..0c25a0f0ee1 100644 --- a/graphql/handler/server_test.go +++ b/graphql/handler/server_test.go @@ -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{}) @@ -138,7 +139,6 @@ func TestServer(t *testing.T) { require.Equal(t, "Bar", cacheDoc.(*ast.QueryDocument).Operations[0].Name) }) }) - } func TestErrorServer(t *testing.T) { @@ -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() diff --git a/graphql/handler/testserver/testserver.go b/graphql/handler/testserver/testserver.go index d00edc05dc2..51223c6e8a2 100644 --- a/graphql/handler/testserver/testserver.go +++ b/graphql/handler/testserver/testserver.go @@ -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) {