summary refs log tree commit diff
path: root/tests/federation
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2023-06-20 04:05:31 -0500
committerGitHub <noreply@github.com>2023-06-20 10:05:31 +0100
commit887fa4b66b038c886634a3eef92af108e391be34 (patch)
tree04d0651c33df97f1ea40822e4c9c15e7420a1297 /tests/federation
parentBump ijson from 3.2.0.post0 to 3.2.1 (#15802) (diff)
downloadsynapse-887fa4b66b038c886634a3eef92af108e391be34.tar.xz
Switch from `matrix://` to `matrix-federation://` scheme for internal Synapse routing of outbound federation traffic (#15806)
`matrix://` is a registered specced scheme nowadays and doesn't make sense for
our internal to Synapse use case anymore. ([discussion]
(https://github.com/matrix-org/synapse/pull/15773#discussion_r1227598679))
Diffstat (limited to 'tests/federation')
-rw-r--r--tests/federation/test_federation_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/federation/test_federation_client.py b/tests/federation/test_federation_client.py
index 91694e4fca..a45ab83683 100644
--- a/tests/federation/test_federation_client.py
+++ b/tests/federation/test_federation_client.py
@@ -124,7 +124,7 @@ class FederationClientTest(FederatingHomeserverTestCase):
         # check the right call got made to the agent
         self._mock_agent.request.assert_called_once_with(
             b"GET",
-            b"matrix://yet.another.server/_matrix/federation/v1/state/%21room_id?event_id=event_id",
+            b"matrix-federation://yet.another.server/_matrix/federation/v1/state/%21room_id?event_id=event_id",
             headers=mock.ANY,
             bodyProducer=None,
         )
@@ -232,7 +232,7 @@ class FederationClientTest(FederatingHomeserverTestCase):
         # check the right call got made to the agent
         self._mock_agent.request.assert_called_once_with(
             b"GET",
-            b"matrix://yet.another.server/_matrix/federation/v1/event/event_id",
+            b"matrix-federation://yet.another.server/_matrix/federation/v1/event/event_id",
             headers=mock.ANY,
             bodyProducer=None,
         )