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>2021-08-19 18:05:12 +0100
committerGitHub <noreply@github.com>2021-08-19 17:05:12 +0000
commite81d62009ee091d69d56bca702ba0edd39becb1c (patch)
treeb20911f0ffe6e7fee3a022ff658144bf73cdce58 /tests/test_federation.py
parentExtract `_resolve_state_at_missing_prevs` (#10624) (diff)
downloadsynapse-e81d62009ee091d69d56bca702ba0edd39becb1c.tar.xz
Split `on_receive_pdu` in half (#10640)
Here we split on_receive_pdu into two functions (on_receive_pdu and process_pulled_event), rather than having both cases in the same method. There's a tiny bit of overlap, but not that much.
Diffstat (limited to '')
-rw-r--r--tests/test_federation.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_federation.py b/tests/test_federation.py

index 3785799f46..348fcb72a7 100644 --- a/tests/test_federation.py +++ b/tests/test_federation.py
@@ -85,11 +85,7 @@ class MessageAcceptTests(unittest.HomeserverTestCase): # Send the join, it should return None (which is not an error) self.assertEqual( - self.get_success( - self.handler.on_receive_pdu( - "test.serv", join_event, sent_to_us_directly=True - ) - ), + self.get_success(self.handler.on_receive_pdu("test.serv", join_event)), None, ) @@ -135,9 +131,7 @@ class MessageAcceptTests(unittest.HomeserverTestCase): with LoggingContext("test-context"): failure = self.get_failure( - self.handler.on_receive_pdu( - "test.serv", lying_event, sent_to_us_directly=True - ), + self.handler.on_receive_pdu("test.serv", lying_event), FederationError, )