Use fixed order in flaky spec (#34279)

This commit is contained in:
David Roetzel 2025-03-26 14:26:24 +01:00 committed by Claire
parent 0615febd84
commit 8a3f25a4fa

View file

@ -170,7 +170,7 @@ RSpec.describe 'Notifications' do
end
context 'with min_id param' do
let(:params) { { min_id: user.account.notifications.reload.first.id - 1 } }
let(:params) { { min_id: user.account.notifications.order(id: :asc).first.id - 1 } }
it 'returns a notification group covering all notifications' do
subject