diff --git a/codegen/testserver/generated_test.go b/codegen/testserver/generated_test.go index 42af5e4cf40..2861f5358cd 100644 --- a/codegen/testserver/generated_test.go +++ b/codegen/testserver/generated_test.go @@ -521,6 +521,12 @@ func TestTracer(t *testing.T) { }) t.Run("model methods", func(t *testing.T) { + srv := httptest.NewServer( + handler.GraphQL( + NewExecutableSchema(Config{Resolvers: &testResolver{}}), + )) + defer srv.Close() + c := client.New(srv.URL) t.Run("without context", func(t *testing.T) { var resp struct { ModelMethods struct {