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: Fix sort order assumption.

Tim Abbott3dfc24a908ff
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index 924b8389080..01d6d201a39 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -4475,7 +4475,7 @@ class TestPushApi(BouncerTestCase):
# RemotePushDeviceToken will only include tokens of
# the devices using push notification bouncer.
remote_token_values = list(RemotePushDeviceToken.objects.values_list("token", flat=True))
- self.assertEqual(remote_token_values, ["apple-tokenbb", "android-token-2"])
+ self.assertEqual(sorted(remote_token_values), ["android-token-2", "apple-tokenbb"])
# Test removing tokens without using push notification bouncer.
for endpoint, token, appid in no_bouncer_requests: