diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-08-19 18:05:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 17:05:12 +0000 |
commit | e81d62009ee091d69d56bca702ba0edd39becb1c (patch) | |
tree | b20911f0ffe6e7fee3a022ff658144bf73cdce58 /tests | |
parent | Extract `_resolve_state_at_missing_prevs` (#10624) (diff) | |
download | synapse-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 'tests')
-rw-r--r-- | tests/test_federation.py | 10 |
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, ) |