diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-02-11 15:01:15 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-02-11 15:01:15 +0000 |
commit | f5a70e0d2e890adea53b3f6565a3bbe92512a506 (patch) | |
tree | 945af3ac6ec84a8f8b1ec1f0df502168f0d7e5e5 /tests/storage/test_base.py | |
parent | Add a lru cache class (diff) | |
download | synapse-f5a70e0d2e890adea53b3f6565a3bbe92512a506.tar.xz |
Add a cache for get_event
Diffstat (limited to 'tests/storage/test_base.py')
-rw-r--r-- | tests/storage/test_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py index a0a24ce096..55fbffa7a2 100644 --- a/tests/storage/test_base.py +++ b/tests/storage/test_base.py @@ -38,8 +38,9 @@ class SQLBaseStoreTestCase(unittest.TestCase): return defer.succeed(func(self.mock_txn, *args, **kwargs)) self.db_pool.runInteraction = runInteraction - hs = HomeServer("test", - db_pool=self.db_pool) + config = Mock() + config.event_cache_size = 1 + hs = HomeServer("test", db_pool=self.db_pool, config=config) self.datastore = SQLBaseStore(hs) |