diff options
author | charlieablett <cablett@gitlab.com> | 2019-10-23 05:32:08 +0300 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-10-23 05:41:20 +0300 |
commit | 77f685a883fec59a74efd3ca0138f31347c74e26 (patch) | |
tree | 914dc46a012b04ef6c3d16d45a4d2d2e67d7be1c | |
parent | c57fc849060cbfe0ff5abd3fdc2ca32adbc35790 (diff) |
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) |