summary refs log tree commit diff
path: root/tests/federation/transport
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-06-24 16:00:08 +0100
committerGitHub <noreply@github.com>2021-06-24 16:00:08 +0100
commit8165ba48b1d7d6a265683b06e32d08935f41fa69 (patch)
treefdf7c961890d9597428841146ae9ea88ade264c2 /tests/federation/transport
parentImprove validation for `send_{join,leave,knock}` (#10225) (diff)
downloadsynapse-8165ba48b1d7d6a265683b06e32d08935f41fa69.tar.xz
Return errors from `send_join` etc if the event is rejected (#10243)
Rather than persisting rejected events via `send_join` and friends, raise a 403 if someone tries to pull a fast one.
Diffstat (limited to 'tests/federation/transport')
-rw-r--r--tests/federation/transport/test_knocking.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/federation/transport/test_knocking.py b/tests/federation/transport/test_knocking.py
index 8c215d50f2..aab44bce4a 100644
--- a/tests/federation/transport/test_knocking.py
+++ b/tests/federation/transport/test_knocking.py
@@ -205,9 +205,7 @@ class FederationKnockingTestCase(
 
         # Have this homeserver skip event auth checks. This is necessary due to
         # event auth checks ensuring that events were signed by the sender's homeserver.
-        async def _check_event_auth(
-            origin, event, context, state, auth_events, backfilled
-        ):
+        async def _check_event_auth(origin, event, context, *args, **kwargs):
             return context
 
         homeserver.get_federation_handler()._check_event_auth = _check_event_auth