Tweak test to insulate against magic number changes

This commit is contained in:
charlieablett 2019-10-23 15:32:08 +13:00
parent d08a78f4b0
commit 5be0a9fe4d
1 changed files with 1 additions and 0 deletions

View File

@ -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)