diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-07-01 10:19:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 10:19:27 +0100 |
commit | 8c2825276fec6e03434f1924482788ea3281a9fc (patch) | |
tree | 8bea703d8ce2b1ea757e16a755001f457fa3ccc3 /tests | |
parent | Add documentation for phone home stats (#13086) (diff) | |
download | synapse-8c2825276fec6e03434f1924482788ea3281a9fc.tar.xz |
Skip waiting for full state for incoming events (#13144)
When we receive an event over federation during a faster join, there is no need to wait for full state, since we have a whole reconciliation process designed to take the partial state into account.
Diffstat (limited to '')
-rw-r--r-- | tests/test_state.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_state.py b/tests/test_state.py index b005dd8d0f..7b3f52f68e 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -131,7 +131,9 @@ class _DummyStore: async def get_room_version_id(self, room_id): return RoomVersions.V1.identifier - async def get_state_group_for_events(self, event_ids): + async def get_state_group_for_events( + self, event_ids, await_full_state: bool = True + ): res = {} for event in event_ids: res[event] = self._event_to_state_group[event] |