summary refs log tree commit diff
path: root/tests/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-23 13:33:49 +0100
committerErik Johnston <erik@matrix.org>2018-07-23 13:33:49 +0100
commit8fbe418777a62ea6dd5fd811d63e30c42589650b (patch)
treed185e7360d46f747db54e4bb1cdcae546e050654 /tests/replication
parentNewsfile (diff)
downloadsynapse-8fbe418777a62ea6dd5fd811d63e30c42589650b.tar.xz
Fix unit tests
Diffstat (limited to 'tests/replication')
-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)