unread_msgs: Fix nondeterminstic ordering of unread_msgs IDs.

This should make this test flake impossible:
https://travis-ci.org/zulip/zulip/jobs/259439642#L1990
This commit is contained in:
Tim Abbott 2017-07-31 10:43:05 -07:00
parent 780dbe72d5
commit 886db27de4
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ def get_unread_message_ids_per_recipient(user_profile):
'message__recipient__type',
'message__recipient__type_id',
'flags',
)
).order_by("message_id")
rows = list(user_msgs)