Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-20 14:10:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-20 14:10:13 +0300
commit0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch)
tree7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/graphql/gitlab_schema_spec.rb
parent72123183a20411a36d607d70b12d57c484394c8e (diff)
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/graphql/gitlab_schema_spec.rb')
-rw-r--r--spec/graphql/gitlab_schema_spec.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb
index 02c686af688..60b3edfc279 100644
--- a/spec/graphql/gitlab_schema_spec.rb
+++ b/spec/graphql/gitlab_schema_spec.rb
@@ -4,15 +4,16 @@ require 'spec_helper'
RSpec.describe GitlabSchema do
let_it_be(:connections) { GitlabSchema.connections.all_wrappers }
+ let_it_be(:tracers) { described_class.tracers }
let(:user) { build :user }
it 'uses batch loading' do
- expect(field_instrumenters).to include(BatchLoader::GraphQL)
+ expect(tracers).to include(BatchLoader::GraphQL)
end
it 'enables the generic instrumenter' do
- expect(field_instrumenters).to include(instance_of(::Gitlab::Graphql::GenericTracing))
+ expect(tracers).to include(instance_of(::Gitlab::Graphql::GenericTracing))
end
it 'has the base mutation' do
@@ -219,6 +220,8 @@ RSpec.describe GitlabSchema do
badField
veryBadField
alsoNotAGoodField
+ yetAnotherBadField
+ andYetAnother
}
}
GQL
@@ -308,8 +311,4 @@ RSpec.describe GitlabSchema do
end
end
end
-
- def field_instrumenters
- described_class.instrumenters[:field] + described_class.instrumenters[:field_after_built_ins]
- end
end