mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 10:53:39 +00:00
Fix flaky test in /api/v2/notifications tests (#33773)
This commit is contained in:
parent
6e906884cf
commit
4f33b041f0
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user