summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-15 15:18:37 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 15:47:06 +0000
commit4810f7effd0fc3fd97f9edaf8ea0af48477adb0a (patch)
treef0aa8f41febaf3341e6c48f7b7fd66e9919b8030 /tests
parentUpdate event_push_actions table from staging table (diff)
downloadsynapse-4810f7effd0fc3fd97f9edaf8ea0af48477adb0a.tar.xz
Remove context.push_actions
Diffstat (limited to 'tests')
-rw-r--r--tests/replication/slave/storage/test_events.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/replication/slave/storage/test_events.py b/tests/replication/slave/storage/test_events.py
index f430cce931..4780f2ab72 100644
--- a/tests/replication/slave/storage/test_events.py
+++ b/tests/replication/slave/storage/test_events.py
@@ -230,7 +230,10 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
             state_handler = self.hs.get_state_handler()
             context = yield state_handler.compute_event_context(event)
 
-        context.push_actions = push_actions
+        for user_id, actions in push_actions:
+            yield self.master_store.add_push_actions_to_staging(
+                event.event_id, user_id, actions,
+            )
 
         ordering = None
         if backfill: