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_reactions: Fix unnecessarily hard-coded user id.

Mateusz Manderaccd961b79777
diff --git a/zerver/tests/test_reactions.py b/zerver/tests/test_reactions.py
index a5b0a9bc560..b38cc954076 100644
--- a/zerver/tests/test_reactions.py
+++ b/zerver/tests/test_reactions.py
@@ -104,11 +104,11 @@ class ReactionEmojiTest(ZulipTestCase):
"emoji_code": "1f642",
"reaction_type": "unicode_emoji",
"user": {
- "email": "[email protected]",
- "id": 10,
+ "email": f"user{sender.id}@zulip.testserver",
+ "id": sender.id,
"full_name": "King Hamlet",
},
- "user_id": 10,
+ "user_id": sender.id,
}
]
self.assertEqual(expected_reaction_data, message["reactions"])