summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-11 15:01:15 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-11 15:01:15 +0000
commitf5a70e0d2e890adea53b3f6565a3bbe92512a506 (patch)
tree945af3ac6ec84a8f8b1ec1f0df502168f0d7e5e5 /tests/utils.py
parentAdd a lru cache class (diff)
downloadsynapse-f5a70e0d2e890adea53b3f6565a3bbe92512a506.tar.xz
Add a cache for get_event
Diffstat (limited to '')
-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()