summary refs log tree commit diff
path: root/tests/test_federation.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-11-01 16:19:09 +0000
committerGitHub <noreply@github.com>2019-11-01 16:19:09 +0000
commitc6516adbe03a0acdd614ba6eb9d6f447dd4259e9 (patch)
treeb22f84c5647769b59348452096021eee509b1eb2 /tests/test_federation.py
parentMerge pull request #6313 from matrix-org/uhoreg/cross_signing_fix_sqlite_schema (diff)
downloadsynapse-c6516adbe03a0acdd614ba6eb9d6f447dd4259e9.tar.xz
Factor out an _AsyncEventContextImpl (#6298)
The intention here is to make it clearer which fields we can expect to be
populated when: notably, that the _event_type etc aren't used for the
synchronous impl of EventContext.
Diffstat (limited to '')
-rw-r--r--tests/test_federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_federation.py b/tests/test_federation.py
index d1acb16f30..7d82b58466 100644
--- a/tests/test_federation.py
+++ b/tests/test_federation.py
@@ -59,7 +59,9 @@ class MessageAcceptTests(unittest.TestCase):
         )
 
         self.handler = self.homeserver.get_handlers().federation_handler
-        self.handler.do_auth = lambda *a, **b: succeed(True)
+        self.handler.do_auth = lambda origin, event, context, auth_events: succeed(
+            context
+        )
         self.client = self.homeserver.get_federation_client()
         self.client._check_sigs_and_hash_and_fetch = lambda dest, pdus, **k: succeed(
             pdus