mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Previously, the UserProfile objects were created in the order generated by a Set, which meant tests would randomly start failing if the code that runs before this part of populate_db changed (and thus caused the Set object used to pass users into bulk_create_users to have a different order when enumerated). This fixes the issue in two ways -- one by sorting the users inside bulk_create_users, and second by attaching subscriptions to users based on a deterministic ordering.