mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 10:36:06 -04:00
Actually fix bad debug logging rejecting device list & signing key transactions (#12098)
This commit is contained in:
parent
9e83521af8
commit
5565f454e1
3 changed files with 21 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue