diff options
author | Mark Haines <mjark@negativecurvature.net> | 2015-02-11 15:44:09 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2015-02-11 15:44:09 +0000 |
commit | 40f332e5348bd301bb623870eddb3adf1ca363f3 (patch) | |
tree | 20f3eda004e9b35217263033a525382dbaac6422 /tests/storage/test_base.py | |
parent | Mention new libs in CHANGES (diff) | |
parent | Invalidate the cache for an event if it is redacted (diff) | |
download | synapse-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/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) |