test_markdown: Reduce object generation in a loop.

This commit is contained in:
Tim Abbott
2025-01-23 16:22:20 -08:00
parent f9f6e6d7e6
commit 73f0ca91f2

View File

@@ -310,7 +310,7 @@ class MarkdownMiscTest(ZulipTestCase):
mention_backend = MentionBackend(realm.id)
content = ""
for i in range(40):
for i in range(5):
group_name = f"group{i}"
check_add_user_group(realm, group_name, [hamlet, cordelia], acting_user=othello)
content += f" @*{group_name}*"