summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-02-11 15:44:09 +0000
committerMark Haines <mjark@negativecurvature.net>2015-02-11 15:44:09 +0000
commit40f332e5348bd301bb623870eddb3adf1ca363f3 (patch)
tree20f3eda004e9b35217263033a525382dbaac6422 /tests/utils.py
parentMention new libs in CHANGES (diff)
parentInvalidate the cache for an event if it is redacted (diff)
downloadsynapse-40f332e5348bd301bb623870eddb3adf1ca363f3.tar.xz
Merge pull request #65 from matrix-org/get_event_cache
Add an in-memory cache for get_event in the storage layer
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 25c33492a5..39895c739f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -41,6 +41,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
     if config is None:
         config = Mock()
         config.signing_key = [MockKey()]
+        config.event_cache_size = 1
 
     if datastore is None:
         db_pool = SQLiteMemoryDbPool()