From d2e4be045655816fb0c512c3a953cfe9b062240d Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 19 Aug 2024 16:53:54 +0200 Subject: [PATCH] Hopefully fix notifications pagination flaky test (#31494) --- spec/requests/api/v1/notifications_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/v1/notifications_spec.rb b/spec/requests/api/v1/notifications_spec.rb index 3d1e8a478..84e6db1e5 100644 --- a/spec/requests/api/v1/notifications_spec.rb +++ b/spec/requests/api/v1/notifications_spec.rb @@ -185,7 +185,7 @@ RSpec.describe 'Notifications' do it 'returns the requested number of notifications paginated', :aggregate_failures do subject - notifications = user.account.notifications.browserable + notifications = user.account.notifications.browserable.order(id: :asc) expect(body_as_json.size) .to eq(params[:limit])