summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-08-28 17:21:05 +0100
committerRichard van der Hoff <richard@matrix.org>2018-08-28 17:21:05 +0100
commit414fa36f3e22d87ea6ce4bdd6af54bce5a0de67c (patch)
treebee69658ab05a5c907108234f675b0da4e1f900e /tests/utils.py
parentuse abc.abstractproperty (diff)
downloadsynapse-414fa36f3e22d87ea6ce4bdd6af54bce5a0de67c.tar.xz
Fix up tests
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index e8ef10445c..657c258a6e 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -29,7 +29,7 @@ from synapse.api.errors import CodeMessageException, cs_error
 from synapse.federation.transport import server
 from synapse.http.server import HttpServer
 from synapse.server import HomeServer
-from synapse.storage import PostgresEngine
+from synapse.storage import DataStore, PostgresEngine
 from synapse.storage.engines import create_engine
 from synapse.storage.prepare_database import (
     _get_or_create_schema_state,
@@ -92,10 +92,14 @@ def setupdb():
         atexit.register(_cleanup)
 
 
+class TestHomeServer(HomeServer):
+    DATASTORE_CLASS = DataStore
+
+
 @defer.inlineCallbacks
 def setup_test_homeserver(
     cleanup_func, name="test", datastore=None, config=None, reactor=None,
-    homeserverToUse=HomeServer, **kargs
+    homeserverToUse=TestHomeServer, **kargs
 ):
     """
     Setup a homeserver suitable for running tests against.  Keyword arguments