From a40a0221c63eadb6b1df44b3f9504581e4b5465c Mon Sep 17 00:00:00 2001 From: David Roetzel <david@roetzel.de> Date: Wed, 26 Mar 2025 14:26:24 +0100 Subject: [PATCH] Use fixed order in flaky spec (#34279) --- spec/requests/api/v2/notifications_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/v2/notifications_spec.rb b/spec/requests/api/v2/notifications_spec.rb index a7608e1419..72df063d49 100644 --- a/spec/requests/api/v2/notifications_spec.rb +++ b/spec/requests/api/v2/notifications_spec.rb @@ -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