diff options
author | Erik Johnston <erik@matrix.org> | 2022-05-21 14:11:52 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2022-05-23 10:26:32 +0100 |
commit | 30d534113854d4068869ea8eee0b61030e677bb9 (patch) | |
tree | dc0cf913e48eb7c749582579d36d1ed765365693 /tests/test_state.py | |
parent | Newsfile (diff) | |
download | synapse-30d534113854d4068869ea8eee0b61030e677bb9.tar.xz |
Diffstat (limited to 'tests/test_state.py')
-rw-r--r-- | tests/test_state.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/test_state.py b/tests/test_state.py index c6baea3d76..84694d368d 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -442,7 +442,12 @@ class StateTestCase(unittest.TestCase): ] context = yield defer.ensureDeferred( - self.state.compute_event_context(event, old_state=old_state) + self.state.compute_event_context( + event, + state_ids_before_event={ + (e.type, e.state_key): e.event_id for e in old_state + }, + ) ) prev_state_ids = yield defer.ensureDeferred(context.get_prev_state_ids()) @@ -467,7 +472,12 @@ class StateTestCase(unittest.TestCase): ] context = yield defer.ensureDeferred( - self.state.compute_event_context(event, old_state=old_state) + self.state.compute_event_context( + event, + state_ids_before_event={ + (e.type, e.state_key): e.event_id for e in old_state + }, + ) ) prev_state_ids = yield defer.ensureDeferred(context.get_prev_state_ids()) |