diff options
author | Erik Johnston <erik@matrix.org> | 2020-10-22 10:11:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 10:11:06 +0100 |
commit | 2ac908f377ca7522019e1560c115f893e52d79a1 (patch) | |
tree | 33768a70d49f89a2eeab54e7654de5b9b18910c2 /tests/test_federation.py | |
parent | Optimise CacheDescriptor (#8594) (diff) | |
download | synapse-2ac908f377ca7522019e1560c115f893e52d79a1.tar.xz |
Don't instansiate Requester directly (#8614)
Diffstat (limited to 'tests/test_federation.py')
-rw-r--r-- | tests/test_federation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_federation.py b/tests/test_federation.py index d39e792580..1ce4ea3a01 100644 --- a/tests/test_federation.py +++ b/tests/test_federation.py @@ -20,7 +20,7 @@ from twisted.internet.defer import succeed from synapse.api.errors import FederationError from synapse.events import make_event_from_dict from synapse.logging.context import LoggingContext -from synapse.types import Requester, UserID +from synapse.types import UserID, create_requester from synapse.util import Clock from synapse.util.retryutils import NotRetryingDestination @@ -43,7 +43,7 @@ class MessageAcceptTests(unittest.HomeserverTestCase): ) user_id = UserID("us", "test") - our_user = Requester(user_id, None, False, False, None, None) + our_user = create_requester(user_id) room_creator = self.homeserver.get_room_creation_handler() self.room_id = self.get_success( room_creator.create_room( |