DEV: correct flaky test testing message content

DEV: correct flaky test testing message content

This test was expecting user id ordering which is not really required. Order of users does not matter

diff --git a/spec/models/topic_tracking_state_spec.rb b/spec/models/topic_tracking_state_spec.rb
index bb90a71..862175f 100644
--- a/spec/models/topic_tracking_state_spec.rb
+++ b/spec/models/topic_tracking_state_spec.rb
@@ -89,7 +89,7 @@ describe TopicTrackingState do
 
         expect(message.channel).to eq('/private-messages/inbox')
         expect(message.data["topic_id"]).to eq(private_message_topic.id)
-        expect(message.user_ids).to eq(allowed_users.map(&:id))
+        expect(message.user_ids).to contain_exactly(*allowed_users.map(&:id))
       end
     end

GitHub sha: a49e4845

1 Like