summary refs log tree commit diff
path: root/tests/test_metrics.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-10-14 19:43:37 +0100
committerRichard van der Hoff <richard@matrix.org>2020-10-14 23:38:14 +0100
commit9f87da0a84f93096e228f01f1139c9b5db8ea3d4 (patch)
tree7e7537fc724023611f94727b9b93791862aaf3b7 /tests/test_metrics.py
parentAdd some more type annotations to Cache (diff)
downloadsynapse-9f87da0a84f93096e228f01f1139c9b5db8ea3d4.tar.xz
Rename Cache->DeferredCache
Diffstat (limited to 'tests/test_metrics.py')
-rw-r--r--tests/test_metrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_metrics.py b/tests/test_metrics.py

index f5f63d8ed6..1c03a52f7c 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py
@@ -15,7 +15,7 @@ # limitations under the License. from synapse.metrics import REGISTRY, InFlightGauge, generate_latest -from synapse.util.caches.descriptors import Cache +from synapse.util.caches.descriptors import DeferredCache from tests import unittest @@ -138,7 +138,7 @@ class CacheMetricsTests(unittest.HomeserverTestCase): Caches produce metrics reflecting their state when scraped. """ CACHE_NAME = "cache_metrics_test_fgjkbdfg" - cache = Cache(CACHE_NAME, max_entries=777) + cache = DeferredCache(CACHE_NAME, max_entries=777) items = { x.split(b"{")[0].decode("ascii"): x.split(b" ")[1].decode("ascii")