minor: Fix list/set test flake.

This commit is contained in:
Steve Howell 2020-03-15 13:09:43 +00:00 committed by showell
parent a491c5a162
commit ff4b5d8ce6
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class AlertWordTests(ZulipTestCase):
realm_words = alert_words_in_realm(user2.realm) realm_words = alert_words_in_realm(user2.realm)
self.assertEqual(len(realm_words), 2) self.assertEqual(len(realm_words), 2)
self.assertEqual(list(realm_words.keys()), [user1.id, user2.id]) self.assertEqual(set(realm_words.keys()), {user1.id, user2.id})
self.assertEqual(realm_words[user1.id], self.assertEqual(realm_words[user1.id],
self.interesting_alert_word_list) self.interesting_alert_word_list)
self.assertEqual(realm_words[user2.id], ['another']) self.assertEqual(realm_words[user2.id], ['another'])