summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-13 23:14:35 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-13 23:58:48 +0100
commita34b17e492129adba260915de401ab1cbabf6215 (patch)
tree489ba3579833516070c8897e191251a9fb29692c /tests/storage
parentRemove redundant `token_id` parameter to create_event (diff)
downloadsynapse-a34b17e492129adba260915de401ab1cbabf6215.tar.xz
Simplify `_locally_reject_invite`
Update `EventCreationHandler.create_event` to accept an auth_events param, and
use it in `_locally_reject_invite` instead of reinventing the wheel.
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_redaction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_redaction.py b/tests/storage/test_redaction.py
index 1ea35d60c1..d4f9e809db 100644
--- a/tests/storage/test_redaction.py
+++ b/tests/storage/test_redaction.py
@@ -236,9 +236,9 @@ class RedactionTestCase(unittest.HomeserverTestCase):
                 self._event_id = event_id
 
             @defer.inlineCallbacks
-            def build(self, prev_event_ids):
+            def build(self, prev_event_ids, auth_event_ids):
                 built_event = yield defer.ensureDeferred(
-                    self._base_builder.build(prev_event_ids)
+                    self._base_builder.build(prev_event_ids, auth_event_ids)
                 )
 
                 built_event._event_id = self._event_id