summary refs log tree commit diff
path: root/tests/replication/slave/storage/test_events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 16:09:40 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 16:09:40 +0100
commitb136d7ff8ff2017148bd0ee52d7065c304b0ef0f (patch)
tree9cfd9af91b170993385b2460392adc563731270e /tests/replication/slave/storage/test_events.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentMerge pull request #3581 from matrix-org/erikj/fixup_stateless (diff)
downloadsynapse-b136d7ff8ff2017148bd0ee52d7065c304b0ef0f.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'tests/replication/slave/storage/test_events.py')
-rw-r--r--tests/replication/slave/storage/test_events.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/replication/slave/storage/test_events.py b/tests/replication/slave/storage/test_events.py

index cea01d93eb..f5b47f5ec0 100644 --- a/tests/replication/slave/storage/test_events.py +++ b/tests/replication/slave/storage/test_events.py
@@ -222,9 +222,11 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase): state_ids = { key: e.event_id for key, e in state.items() } - context = EventContext() - context.current_state_ids = state_ids - context.prev_state_ids = state_ids + context = EventContext.with_state( + state_group=None, + current_state_ids=state_ids, + prev_state_ids=state_ids + ) else: state_handler = self.hs.get_state_handler() context = yield state_handler.compute_event_context(event)