diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-07-26 12:39:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 12:39:23 +0100 |
commit | 335ebb21ccc0ae906169f21dcfc456c869bdd301 (patch) | |
tree | d79c423c2592b719fe02ffc6bb6f40f5f4416aed /tests/test_state.py | |
parent | Remove unused argument for get_relations_for_event. (#13383) (diff) | |
download | synapse-335ebb21ccc0ae906169f21dcfc456c869bdd301.tar.xz |
Faster room joins: avoid blocking when pulling events with missing prevs (#13355)
Avoid blocking on full state in `_resolve_state_at_missing_prevs` and return a new flag indicating whether the resolved state is partial. Thread that flag around so that it makes it into the event context. Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r-- | tests/test_state.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_state.py b/tests/test_state.py index bafd6d1750..504530b49a 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -462,6 +462,7 @@ class StateTestCase(unittest.TestCase): state_ids_before_event={ (e.type, e.state_key): e.event_id for e in old_state }, + partial_state=False, ) ) @@ -492,6 +493,7 @@ class StateTestCase(unittest.TestCase): state_ids_before_event={ (e.type, e.state_key): e.event_id for e in old_state }, + partial_state=False, ) ) |