summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-10-22 10:11:06 +0100
committerGitHub <noreply@github.com>2020-10-22 10:11:06 +0100
commit2ac908f377ca7522019e1560c115f893e52d79a1 (patch)
tree33768a70d49f89a2eeab54e7654de5b9b18910c2 /tests/unittest.py
parentOptimise CacheDescriptor (#8594) (diff)
downloadsynapse-2ac908f377ca7522019e1560c115f893e52d79a1.tar.xz
Don't instansiate Requester directly (#8614)
Diffstat (limited to '')
-rw-r--r--tests/unittest.py4
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(