diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-10-15 11:42:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 11:42:07 +0100 |
commit | 0a08cd10656349fc9e59d90c1cb3170598b7b0da (patch) | |
tree | d9f6ca7190d93a96eac15064dee33e5baa7fb45f /tests/test_metrics.py | |
parent | Include user agent in user daily visits table (#8503) (diff) | |
parent | changelog (diff) | |
download | synapse-0a08cd10656349fc9e59d90c1cb3170598b7b0da.tar.xz |
Merge pull request #8548 from matrix-org/rav/deferred_cache
Rename Cache to DeferredCache, and related changes
Diffstat (limited to 'tests/test_metrics.py')
-rw-r--r-- | tests/test_metrics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_metrics.py b/tests/test_metrics.py index f5f63d8ed6..759e4cd048 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.deferred_cache 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") |