Fix some flaky tests that randomly failed because of item ordering (#17509)
This commit is contained in:
parent
2af03164cb
commit
472bc89611
5 changed files with 20 additions and 20 deletions
|
@ -47,7 +47,7 @@ RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controll
|
|||
|
||||
it 'returns orderedItems with followers from example.com' do
|
||||
expect(body[:orderedItems]).to be_an Array
|
||||
expect(body[:orderedItems].sort).to eq [follower_4.uri, follower_1.uri, follower_2.uri]
|
||||
expect(body[:orderedItems]).to match_array([follower_4.uri, follower_1.uri, follower_2.uri])
|
||||
end
|
||||
|
||||
it 'returns private Cache-Control header' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue