From 7b4eca5d9e7509ac8130f6fbcc927bbcdcf9fc75 Mon Sep 17 00:00:00 2001 From: Jennifer Li <jli@gitlab.com> Date: Fri, 19 Apr 2024 22:54:27 +0000 Subject: [PATCH] Increase validation timeout in gitlab_schema.rb --- app/graphql/gitlab_schema.rb | 2 +- spec/graphql/gitlab_schema_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb index 2c4cbb45f9720..63427141fad09 100644 --- a/app/graphql/gitlab_schema.rb +++ b/app/graphql/gitlab_schema.rb @@ -32,7 +32,7 @@ class GitlabSchema < GraphQL::Schema default_max_page_size 100 validate_max_errors 5 - validate_timeout 0.2.seconds + validate_timeout 0.5.seconds lazy_resolve ::Gitlab::Graphql::Lazy, :force diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb index c9ae3dc987ed7..0f46b226f2ec0 100644 --- a/spec/graphql/gitlab_schema_spec.rb +++ b/spec/graphql/gitlab_schema_spec.rb @@ -33,7 +33,7 @@ end it 'sets an appropriate validation timeout' do - expect(described_class.validate_timeout).to be <= 0.2.seconds + expect(described_class.validate_timeout).to be <= 0.5.seconds end describe '.execute' do -- GitLab