Commit 6592e5fc authored by Robert May's avatar Robert May

Fix N+1 test failure

parent 45d463e4
......@@ -52,7 +52,7 @@ RSpec.describe API::MergeRequests, :with_clean_rails_cache do
end
context 'when authenticated' do
it 'avoids N+1 queries' do
it 'avoids N+1 queries', :use_sql_query_cache do
control = ActiveRecord::QueryRecorder.new do
get api(endpoint_path, user)
end
......
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