Commit 5b193ac3 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'attempt-to-fix-flaky-test' into 'master'

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

See merge request gitlab-org/gitlab!36342
parents 715b5f62 6f4884dc
......@@ -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