summary refs log tree commit diff
path: root/tests/storage/test__base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-19 15:13:58 +0100
committerErik Johnston <erik@matrix.org>2016-08-19 15:13:58 +0100
commitc0d7d9d6429584f51a8174a331e72a894009f3c8 (patch)
tree48d2492257b567979d2206351371e4cacc4aa890 /tests/storage/test__base.py
parentMake cache_context an explicit option (diff)
downloadsynapse-c0d7d9d6429584f51a8174a331e72a894009f3c8.tar.xz
Rename to on_invalidate
Diffstat (limited to 'tests/storage/test__base.py')
-rw-r--r--tests/storage/test__base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test__base.py b/tests/storage/test__base.py
index eab0c8d219..4fc3639de0 100644
--- a/tests/storage/test__base.py
+++ b/tests/storage/test__base.py
@@ -214,7 +214,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
             @cached(cache_context=True)
             def func2(self, key, cache_context):
                 callcount2[0] += 1
-                return self.func(key, cache_context=cache_context)
+                return self.func(key, on_invalidate=cache_context.invalidate)
 
         a = A()
         yield a.func2("foo")
@@ -247,7 +247,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
             @cached(cache_context=True)
             def func2(self, key, cache_context):
                 callcount2[0] += 1
-                return self.func(key, cache_context=cache_context)
+                return self.func(key, on_invalidate=cache_context.invalidate)
 
         a = A()
         yield a.func2("foo")