Fix flaky test in /api/v2/notifications tests (#33773)

This commit is contained in:
Claire 2025-01-29 13:49:03 +01:00 committed by GitHub
parent 1e70da5e3c
commit 2d545c5fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,7 +153,7 @@ RSpec.describe 'Notifications' do
it 'returns a notification group covering all notifications' do it 'returns a notification group covering all notifications' do
subject subject
notification_ids = user.account.notifications.reload.pluck(:id) notification_ids = user.account.notifications.order(id: :asc).pluck(:id)
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
expect(response.content_type) expect(response.content_type)
@ -175,7 +175,7 @@ RSpec.describe 'Notifications' do
it 'returns a notification group covering all notifications' do it 'returns a notification group covering all notifications' do
subject subject
notification_ids = user.account.notifications.reload.pluck(:id) notification_ids = user.account.notifications.order(id: :asc).pluck(:id)
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
expect(response.content_type) expect(response.content_type)