diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-15 15:18:37 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-15 15:47:06 +0000 |
commit | 4810f7effd0fc3fd97f9edaf8ea0af48477adb0a (patch) | |
tree | f0aa8f41febaf3341e6c48f7b7fd66e9919b8030 /tests/replication | |
parent | Update event_push_actions table from staging table (diff) | |
download | synapse-4810f7effd0fc3fd97f9edaf8ea0af48477adb0a.tar.xz |
Remove context.push_actions
Diffstat (limited to 'tests/replication')
-rw-r--r-- | tests/replication/slave/storage/test_events.py | 5 |
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: |