diff options
author | David Robertson <davidr@element.io> | 2022-02-28 14:10:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 14:10:36 +0000 |
commit | 5565f454e1b323b637dd418549f70fadac0f44b4 (patch) | |
tree | 698b789e7fdc6abe3ff05ba1fd44ffae9179148a /tests | |
parent | Properly failover for unknown endpoints from Conduit/Dendrite. (#12077) (diff) | |
download | synapse-5565f454e1b323b637dd418549f70fadac0f44b4.tar.xz |
Actually fix bad debug logging rejecting device list & signing key transactions (#12098)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/federation/transport/test_server.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/federation/transport/test_server.py b/tests/federation/transport/test_server.py index ce49d094d7..5f001c33b0 100644 --- a/tests/federation/transport/test_server.py +++ b/tests/federation/transport/test_server.py @@ -13,7 +13,7 @@ # limitations under the License. from tests import unittest -from tests.unittest import override_config +from tests.unittest import DEBUG, override_config class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase): @@ -38,3 +38,21 @@ class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase): "/_matrix/federation/v1/publicRooms", ) self.assertEqual(200, channel.code) + + @DEBUG + def test_edu_debugging_doesnt_explode(self): + """Sanity check incoming federation succeeds with `synapse.debug_8631` enabled. + + Remove this when we strip out issue_8631_logger. + """ + channel = self.make_signed_federation_request( + "PUT", + "/_matrix/federation/v1/send/txn_id_1234/", + content={ + "edus": [ + {"edu_type": "m.device_list_update", "content": {"foo": "bar"}} + ], + "pdus": [], + }, + ) + self.assertEqual(200, channel.code) |