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:
Diffstat (limited to 'spec/lib/gitlab/graphql/timeout_spec.rb')
-rw-r--r--spec/lib/gitlab/graphql/timeout_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/lib/gitlab/graphql/timeout_spec.rb b/spec/lib/gitlab/graphql/timeout_spec.rb
index 999840019d2..fd27def6973 100644
--- a/spec/lib/gitlab/graphql/timeout_spec.rb
+++ b/spec/lib/gitlab/graphql/timeout_spec.rb
@@ -8,10 +8,9 @@ RSpec.describe Gitlab::Graphql::Timeout do
end
it 'sends the error to our GraphQL logger' do
- parent_type = double(graphql_name: 'parent_type')
- field = double(graphql_name: 'field')
+ field = double(path: 'parent_type.field')
query = double(query_string: 'query_string', provided_variables: 'provided_variables')
- error = GraphQL::Schema::Timeout::TimeoutError.new(parent_type, field)
+ error = GraphQL::Schema::Timeout::TimeoutError.new(field)
expect(Gitlab::GraphqlLogger)
.to receive(:error)