Commit 8a5881d3 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '249584-fix-broken-master' into 'master'

Ensure search results are ordered deterministically

Closes #249584

See merge request gitlab-org/gitlab!42381
parents 5ae9fb80 c88ff055
...@@ -13,7 +13,7 @@ RSpec.describe Gitlab::SearchResults do ...@@ -13,7 +13,7 @@ RSpec.describe Gitlab::SearchResults do
let(:merge_request) { create(:merge_request, source_project: project, title: 'foo') } let(:merge_request) { create(:merge_request, source_project: project, title: 'foo') }
let(:filters) { {} } let(:filters) { {} }
subject(:results) { described_class.new(user, 'foo', Project.all, filters: filters) } subject(:results) { described_class.new(user, 'foo', Project.order(:id), filters: filters) }
context 'as a user with access' do context 'as a user with access' do
before do before 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