diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-10 22:00:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 22:00:10 +0100 |
commit | 472bc89611cb3ce0594cd7b42b730c3484899c33 (patch) | |
tree | 6444a5f668d62cd04b68f30c0a0ce8dd52e83965 /spec/controllers/activitypub | |
parent | 2af03164cbf0c3e86b551d9be338780c204ef9fa (diff) |
Fix some flaky tests that randomly failed because of item ordering (#17509)
Diffstat (limited to 'spec/controllers/activitypub')
-rw-r--r-- | spec/controllers/activitypub/followers_synchronizations_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb b/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb index 3a382ff27..e233bd560 100644 --- a/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb +++ b/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb @@ -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 |