Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 28, 2022
1 parent 2e36f23 commit 39022bd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/federation/transport/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from tests import unittest
from tests.unittest import override_config
from tests.unittest import override_config, DEBUG


class RoomDirectoryFederationTests(unittest.FederatingHomeserverTestCase):
Expand All @@ -38,3 +38,19 @@ def test_open_public_room_list_over_federation(self):
"/_matrix/federation/v1/publicRooms",
)
self.assertEquals(200, channel.code)

@DEBUG
def test_edu_debugging_doesnt_explode(self):
"""Sanity check fed. RX succeeds with `synapse.debug_8631` logging 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.assertEquals(200, channel.code)

0 comments on commit 39022bd

Please sign in to comment.