diff options
author | charlieablett <cablett@gitlab.com> | 2019-10-23 15:32:08 +1300 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-10-23 16:05:54 +1300 |
commit | 436d835d7be410d649757f0e8a076ecfca71c130 (patch) | |
tree | ef2b579fb4572392cb6fda991125d40cd68d1b8d | |
parent | 2553e5a53c556651a9fc93eed84872bd346ed1f3 (diff) | |
download | gitlab-ce-436d835d7be410d649757f0e8a076ecfca71c130.tar.gz |
Tweak test to insulate against magic number changes
-rw-r--r-- | spec/requests/api/graphql/gitlab_schema_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/graphql/gitlab_schema_spec.rb b/spec/requests/api/graphql/gitlab_schema_spec.rb index 1f2bc67a9d2..1e799a0a42a 100644 --- a/spec/requests/api/graphql/gitlab_schema_spec.rb +++ b/spec/requests/api/graphql/gitlab_schema_spec.rb @@ -65,6 +65,7 @@ describe 'GitlabSchema configurations' do context 'a deep recursive non-introspective query' do it 'fails due to recursion, complexity and depth' do + allow(GitlabSchema).to receive(:max_query_complexity).and_return 1 query = File.read(Rails.root.join('spec/fixtures/api/graphql/recursive-query.graphql')) post_graphql(query, current_user: nil) |