Tweak test to insulate against magic number changes
This commit is contained in:
parent
d08a78f4b0
commit
5be0a9fe4d
|
|
@ -65,6 +65,7 @@ describe 'GitlabSchema configurations' do
|
||||||
|
|
||||||
context 'a deep recursive non-introspective query' do
|
context 'a deep recursive non-introspective query' do
|
||||||
it 'fails due to recursion, complexity and depth' 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'))
|
query = File.read(Rails.root.join('spec/fixtures/api/graphql/recursive-query.graphql'))
|
||||||
|
|
||||||
post_graphql(query, current_user: nil)
|
post_graphql(query, current_user: nil)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue