Skip to content
Snippets Groups Projects
Commit 6a836620 authored by Charlie Ablett's avatar Charlie Ablett
Browse files

Tweak test to insulate against magic number changes

parent 46ebc4db
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment