Commit 6f4884dc authored by Rémy Coutable's avatar Rémy Coutable

Don't skip cached queries in a N+1 test

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 03603d33
......@@ -46,7 +46,7 @@ RSpec.describe RendersCommits do
it 'avoids N + 1' do
stub_const("MergeRequestDiff::COMMITS_SAFE_SIZE", 5)
control_count = ActiveRecord::QueryRecorder.new(skip_cached: false) do
control_count = ActiveRecord::QueryRecorder.new do
go
end.count
......
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