Hopefully fix notifications pagination flaky test (#31494)

pull/2817/head
Claire 2024-08-19 16:53:54 +02:00 committed by GitHub
parent 1e612c5a09
commit d2e4be0456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ RSpec.describe 'Notifications' do
it 'returns the requested number of notifications paginated', :aggregate_failures do it 'returns the requested number of notifications paginated', :aggregate_failures do
subject subject
notifications = user.account.notifications.browserable notifications = user.account.notifications.browserable.order(id: :asc)
expect(body_as_json.size) expect(body_as_json.size)
.to eq(params[:limit]) .to eq(params[:limit])