diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-06 16:02:50 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-12-06 16:02:50 +0000 |
commit | 852f80d8a697c9d556b1b2641a2e4c1797cbbb46 (patch) | |
tree | c41b92be858914b5b38f637f638c55ec78117d6d /tests/replication/slave | |
parent | Move start up DB checks to main data store. (diff) | |
download | synapse-852f80d8a697c9d556b1b2641a2e4c1797cbbb46.tar.xz |
Fixup tests
Diffstat (limited to 'tests/replication/slave')
-rw-r--r-- | tests/replication/slave/storage/_base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/replication/slave/storage/_base.py b/tests/replication/slave/storage/_base.py index e7472e3a93..3dae83c543 100644 --- a/tests/replication/slave/storage/_base.py +++ b/tests/replication/slave/storage/_base.py @@ -20,6 +20,7 @@ from synapse.replication.tcp.client import ( ReplicationClientHandler, ) from synapse.replication.tcp.resource import ReplicationStreamProtocolFactory +from synapse.storage.database import Database from tests import unittest from tests.server import FakeTransport @@ -42,7 +43,9 @@ class BaseSlavedStoreTestCase(unittest.HomeserverTestCase): self.master_store = self.hs.get_datastore() self.storage = hs.get_storage() - self.slaved_store = self.STORE_TYPE(self.hs.get_db_conn(), self.hs) + self.slaved_store = self.STORE_TYPE( + Database(hs), self.hs.get_db_conn(), self.hs + ) self.event_id = 0 server_factory = ReplicationStreamProtocolFactory(self.hs) |