tornado: Track which queues were inherited from old Tornado instances.

This commit is contained in:
Alex Vandiver
2024-02-07 21:03:15 +00:00
committed by Tim Abbott
parent fc41d6085b
commit 1d3813ec4f
3 changed files with 47 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ from zerver.tornado.event_queue import (
allocate_client_descriptor,
clear_client_event_queues_for_testing,
get_client_info_for_message_event,
mark_clients_to_reload,
process_message_event,
send_web_reload_client_events,
)
@@ -1141,7 +1142,10 @@ class WebReloadClientsTest(ZulipTestCase):
client = allocate_client_descriptor(queue_data)
send_web_reload_client_events()
self.assert_length(client.event_queue.queue, 0)
mark_clients_to_reload([client.event_queue.id])
send_web_reload_client_events()
self.assert_length(client.event_queue.queue, 1)
reload_event = client.event_queue.queue[0]