diff options
author | Erik Johnston <erik@matrix.org> | 2021-09-08 15:18:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 15:18:35 +0100 |
commit | 74f01e11c9e762101b834493a52da12538477e75 (patch) | |
tree | 96d02f35a854f11debf9bdebddf013cfd3dc23f2 /tests/storage | |
parent | Add a constant for m.federate. (#10775) (diff) | |
download | synapse-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.py | 1 |
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( |