Commit 77f685a8 authored by charlieablett's avatar charlieablett

Tweak test to insulate against magic number changes

parent c57fc849
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment