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
This commit is contained in:
commit
dacc96460e
1 changed files with 4 additions and 0 deletions
|
@ -197,3 +197,7 @@ module GraphqlHelpers
|
|||
allow(GitlabSchema).to receive(:max_query_depth).with(any_args).and_return nil
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue