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

Mateusz Mandera91b3ba6d667e
diff --git a/zerver/tests/test_queue_worker.py b/zerver/tests/test_queue_worker.py
index 8a72599c128..b63d2e8c1d5 100644
--- a/zerver/tests/test_queue_worker.py
+++ b/zerver/tests/test_queue_worker.py
@@ -195,8 +195,8 @@ class WorkerTest(ZulipTestCase):
self.assertEqual(
info_logs.output,
[
- "INFO:root:Batch-processing 3 missedmessage_emails events for user 10",
- "INFO:root:Batch-processing 1 missedmessage_emails events for user 12",
+ f"INFO:root:Batch-processing 3 missedmessage_emails events for user {hamlet.id}",
+ f"INFO:root:Batch-processing 1 missedmessage_emails events for user {othello.id}",
],
)