Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Fix flaky behavior of test to update group permissions.
Sahil Batra1153d088b985
diff --git a/zerver/tests/test_user_groups.py b/zerver/tests/test_user_groups.pyindex c98fbb63fbd..f89e6709cca 100644--- a/zerver/tests/test_user_groups.py+++ b/zerver/tests/test_user_groups.py@@ -1193,24 +1193,7 @@ class UserGroupAPITestCase(UserGroupTestCase):params = {"can_mention_group": orjson.dumps({- "new": {- "direct_members": [othello.id],- "direct_subgroups": [moderators_group.id],- },- "old": {- "direct_members": [hamlet.id],- "direct_subgroups": [1111],- },- }- ).decode()- }- result = self.client_patch(f"/json/user_groups/{support_group.id}", info=params)- self.assert_json_error(result, "'old' value does not match the expected value.")-- params = {- "can_mention_group": orjson.dumps(- {- "new": 1111,+ "new": 123456,"old": {"direct_members": [hamlet.id],"direct_subgroups": [marketing_group.id],