summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-11 16:46:01 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-11 16:46:01 +0000
commitcb43fbeeb47e86e2f572dd647f9e59ed181bbf79 (patch)
treecbdd1d389406b75a673739c79678ec58ee1b464b /tests/storage
parentMerge branch 'develop' into application-services (diff)
downloadsynapse-cb43fbeeb47e86e2f572dd647f9e59ed181bbf79.tar.xz
Fix tests which broke when event caching was introduced.
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_appservice.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/storage/test_appservice.py b/tests/storage/test_appservice.py
index b9ecfb3384..fc733d4c79 100644
--- a/tests/storage/test_appservice.py
+++ b/tests/storage/test_appservice.py
@@ -19,6 +19,7 @@ from synapse.appservice import ApplicationService
 from synapse.server import HomeServer
 from synapse.storage.appservice import ApplicationServiceStore
 
+from mock import Mock
 from tests.utils import SQLiteMemoryDbPool, MockClock
 
 
@@ -28,7 +29,9 @@ class ApplicationServiceStoreTestCase(unittest.TestCase):
     def setUp(self):
         db_pool = SQLiteMemoryDbPool()
         yield db_pool.prepare()
-        hs = HomeServer("test", db_pool=db_pool, clock=MockClock())
+        hs = HomeServer(
+            "test", db_pool=db_pool, clock=MockClock(), config=Mock()
+        )
         self.as_token = "token1"
         db_pool.runQuery(
             "INSERT INTO application_services(token) VALUES(?)",