Commit dacc9646 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'bvl-fix-graphql-autoloading' into 'master'

Eager load the GraphQL schema in specs

Closes gitlab-ee#11497

See merge request gitlab-org/gitlab-ce!28246
parents d5fb60c5 0b27841f
...@@ -197,3 +197,7 @@ module GraphqlHelpers ...@@ -197,3 +197,7 @@ module GraphqlHelpers
allow(GitlabSchema).to receive(:max_query_depth).with(any_args).and_return nil allow(GitlabSchema).to receive(:max_query_depth).with(any_args).and_return nil
end end
end end
# This warms our schema, doing this as part of loading the helpers to avoid
# duplicate loading error when Rails tries autoload the types.
GitlabSchema.graphql_definition
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment