Commit c88ff055 authored by Rémy Coutable's avatar Rémy Coutable

Ensure search results are ordered deterministically

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c5133c23
......@@ -13,7 +13,7 @@ RSpec.describe Gitlab::SearchResults do
let(:merge_request) { create(:merge_request, source_project: project, title: 'foo') }
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
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