diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-12-02 15:26:25 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-12-02 16:30:01 +0000 |
commit | 7ea85302f3ce59cdb38bceb1c2aeea2d690e2dbb (patch) | |
tree | 2636a3544e0ced69fcb04996a2eb3c8cbe4b21ef /synapse | |
parent | Add `create_resource_dict` method to HomeserverTestCase (diff) | |
download | synapse-7ea85302f3ce59cdb38bceb1c2aeea2d690e2dbb.tar.xz |
fix up various test cases
A few test cases were relying on being able to mount non-client servlets on the test resource. it's better to give them their own Resources.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/federation/transport/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py index b53e7a20ec..434718ddfc 100644 --- a/synapse/federation/transport/server.py +++ b/synapse/federation/transport/server.py @@ -1462,7 +1462,7 @@ def register_servlets(hs, resource, authenticator, ratelimiter, servlet_groups=N Args: hs (synapse.server.HomeServer): homeserver - resource (TransportLayerServer): resource class to register to + resource (JsonResource): resource class to register to authenticator (Authenticator): authenticator to use ratelimiter (util.ratelimitutils.FederationRateLimiter): ratelimiter to use servlet_groups (list[str], optional): List of servlet groups to register. |