mirror of
https://github.com/element-hq/synapse
synced 2024-06-28 05:43:30 +00:00
Some clean-up
This commit is contained in:
parent
2e1d142892
commit
b1af992113
|
@ -454,4 +454,7 @@ class SlidingSyncHandler:
|
|||
to_token: We sort based on the events in the room at this token
|
||||
"""
|
||||
# TODO: `get_last_event_in_room_before_stream_ordering()`
|
||||
pass
|
||||
|
||||
# TODO: Handle when people are left/banned from the room and shouldn't see past that point
|
||||
|
||||
return list(room_id_set)
|
||||
|
|
|
@ -1047,7 +1047,6 @@ class GetSyncRoomIdsForUserEventShardTestCase(BaseMultiWorkerStreamTestCase):
|
|||
|
||||
# Get a token while things are stuck after our activity
|
||||
stuck_activity_token = self.event_sources.get_current_token()
|
||||
logger.info("stuck_activity_token %s", stuck_activity_token)
|
||||
# Let's make sure we're working with a token that has an `instance_map`
|
||||
self.assertNotEqual(len(stuck_activity_token.room_key.instance_map), 0)
|
||||
|
||||
|
@ -1057,7 +1056,6 @@ class GetSyncRoomIdsForUserEventShardTestCase(BaseMultiWorkerStreamTestCase):
|
|||
join_on_worker2_pos = self.get_success(
|
||||
self.store.get_position_for_event(join_on_worker2_response["event_id"])
|
||||
)
|
||||
logger.info("join_on_worker2_pos %s", join_on_worker2_pos)
|
||||
# Ensure the join technially came after our token
|
||||
self.assertGreater(
|
||||
join_on_worker2_pos.stream,
|
||||
|
@ -1076,7 +1074,6 @@ class GetSyncRoomIdsForUserEventShardTestCase(BaseMultiWorkerStreamTestCase):
|
|||
join_on_worker3_pos = self.get_success(
|
||||
self.store.get_position_for_event(join_on_worker3_response["event_id"])
|
||||
)
|
||||
logger.info("join_on_worker3_pos %s", join_on_worker3_pos)
|
||||
# Ensure the join came after the min but still encapsulated by the token
|
||||
self.assertGreaterEqual(
|
||||
join_on_worker3_pos.stream,
|
||||
|
|
Loading…
Reference in a new issue