summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-09-08 15:18:35 +0100
committerGitHub <noreply@github.com>2021-09-08 15:18:35 +0100
commit74f01e11c9e762101b834493a52da12538477e75 (patch)
tree96d02f35a854f11debf9bdebddf013cfd3dc23f2 /tests/storage
parentAdd a constant for m.federate. (#10775) (diff)
downloadsynapse-74f01e11c9e762101b834493a52da12538477e75.tar.xz
Skip handling of push actions for outlier events (#10780)
Outlier events don't ever have push actions associated with them, so we
can skip some expensive queries during event persistence.
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_event_push_actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/storage/test_event_push_actions.py b/tests/storage/test_event_push_actions.py
index 1930b37eda..bb5939ba4a 100644
--- a/tests/storage/test_event_push_actions.py
+++ b/tests/storage/test_event_push_actions.py
@@ -69,6 +69,7 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
             event.room_id = room_id
             event.event_id = "$test:example.com"
             event.internal_metadata.stream_ordering = stream
+            event.internal_metadata.is_outlier.return_value = False
             event.depth = stream
 
             self.get_success(