Commit c008db06 authored by Rajendra Kadam's avatar Rajendra Kadam

Revert change for N+1 specs

parent ba762b0a
......@@ -47,8 +47,8 @@ RSpec.describe API::Todos do
create_todo_for_new_epic
# Additional query due to authorization check on new group and checking ip restriction on group
expect { get api('/todos', personal_access_token: pat) }.not_to exceed_query_limit(control).with_threshold(2)
# Additional query due to authorization check on new group
expect { get api('/todos', personal_access_token: pat) }.not_to exceed_query_limit(control).with_threshold(1)
end
it 'includes the Epic Todo in the response' do
......
......@@ -45,8 +45,7 @@ RSpec.describe 'Query current user groups' do
new_group = create(:group, :private)
new_group.add_maintainer(current_user)
# Adds an extra query for checking ip restrictions on group
expect { post_graphql(query, current_user: current_user) }.not_to exceed_query_limit(control).with_threshold(1)
expect { post_graphql(query, current_user: current_user) }.not_to exceed_query_limit(control)
end
it 'returns all groups where the user is a direct member' do
......
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