Skip to content
Snippets Groups Projects
Commit b3cf3d04 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Make sure fixture creation does not affect query count test

parent 3e08713c
No related branches found
No related tags found
3 merge requests!14773Maxraab master patch 51809,!12073Add RC2 changes to 9-3-stable,!11518Load improvements related to MR widget
Pipeline #
Loading
Loading
@@ -122,9 +122,12 @@ describe Projects::MergeRequestsController do
 
context 'number of queries' do
it 'verifies number of queries' do
# pre-create objects
merge_request
recorded = ActiveRecord::QueryRecorder.new { go(format: :json) }
 
expect(recorded.count).to be_within(1).of(94)
expect(recorded.count).to be_within(1).of(51)
expect(recorded.cached_count).to eq(0)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment