mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
test_home: Fix user_activity queue event format in a test.
Current production code uses client_id in the event dict and this test should be updated to reflect that. Old format event can still be consumed by the worker, but that is already tested by WorkerTest.test_UserActivityWorker.
This commit is contained in:
committed by
Tim Abbott
parent
4b3ac8c5ed
commit
2983a7e799
@@ -887,7 +887,7 @@ class HomeTest(ZulipTestCase):
|
||||
activity_time = calendar.timegm(now.timetuple())
|
||||
user_activity_event = {
|
||||
"user_profile_id": hamlet.id,
|
||||
"client": "test-client",
|
||||
"client_id": 1,
|
||||
"query": "update_message_flags",
|
||||
"time": activity_time,
|
||||
}
|
||||
@@ -896,7 +896,7 @@ class HomeTest(ZulipTestCase):
|
||||
activity_time_2 = calendar.timegm(yesterday.timetuple())
|
||||
user_activity_event_2 = {
|
||||
"user_profile_id": hamlet.id,
|
||||
"client": "test-client-2",
|
||||
"client_id": 2,
|
||||
"query": "update_message_flags",
|
||||
"time": activity_time_2,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user