Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_push_notifications: Use assertCountEqual for unordered token list.

Prakhar Pratyush55cceeaca1ad
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index 4fef55eecb1..8ce1114effe 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -2208,7 +2208,7 @@ class TestAddRemoveDeviceTokenAPI(BouncerTestCase):
# PushDeviceToken will include all the device tokens.
token_values = list(PushDeviceToken.objects.values_list("token", flat=True))
- self.assertEqual(
+ self.assertCountEqual(
token_values, ["c0ffee01", "android-token-1", "c0ffee02", "android-token-2"]
)