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/storage/test_event_metrics.py | |
parent | Optimise CacheDescriptor (#8594) (diff) | |
download | synapse-2ac908f377ca7522019e1560c115f893e52d79a1.tar.xz |
Don't instansiate Requester directly (#8614)
Diffstat (limited to 'tests/storage/test_event_metrics.py')
-rw-r--r-- | tests/storage/test_event_metrics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_event_metrics.py b/tests/storage/test_event_metrics.py index 3957471f3f..7691f2d790 100644 --- a/tests/storage/test_event_metrics.py +++ b/tests/storage/test_event_metrics.py @@ -14,7 +14,7 @@ # limitations under the License. from synapse.metrics import REGISTRY, generate_latest -from synapse.types import Requester, UserID +from synapse.types import UserID, create_requester from tests.unittest import HomeserverTestCase @@ -27,7 +27,7 @@ class ExtremStatisticsTestCase(HomeserverTestCase): room_creator = self.hs.get_room_creation_handler() user = UserID("alice", "test") - requester = Requester(user, None, False, False, None, None) + requester = create_requester(user) # Real events, forward extremities events = [(3, 2), (6, 2), (4, 6)] |