diff options
author | Erik Johnston <erik@matrix.org> | 2020-10-20 17:08:29 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-10-20 17:08:29 +0100 |
commit | d9c0b19b30480b12794eb72ac1774ee7beded149 (patch) | |
tree | 0032327e6760e16e65254271e35271f31b80d24c /tests/unittest.py | |
parent | Consistently use wrap_as_background_task in more places (#8599) (diff) | |
download | synapse-d9c0b19b30480b12794eb72ac1774ee7beded149.tar.xz |
Don't instansiate Requester directly
Diffstat (limited to '')
-rw-r--r-- | tests/unittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittest.py b/tests/unittest.py index 040b126a27..257f465897 100644 --- a/tests/unittest.py +++ b/tests/unittest.py @@ -44,7 +44,7 @@ from synapse.logging.context import ( set_current_context, ) from synapse.server import HomeServer -from synapse.types import Requester, UserID, create_requester +from synapse.types import UserID, create_requester from synapse.util.ratelimitutils import FederationRateLimiter from tests.server import ( @@ -627,7 +627,7 @@ class HomeserverTestCase(TestCase): """ event_creator = self.hs.get_event_creation_handler() secrets = self.hs.get_secrets() - requester = Requester(user, None, False, False, None, None) + requester = create_requester(user) event, context = self.get_success( event_creator.create_event( |