diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-20 10:48:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 10:48:24 +0000 |
commit | 75d8f26ac85efd3816d454927f40b6e4c3032df1 (patch) | |
tree | 1e88634b8ac0b8418239015d11e97c9e557477f8 /tests | |
parent | Change EventContext to use the Storage class (#6564) (diff) | |
download | synapse-75d8f26ac85efd3816d454927f40b6e4c3032df1.tar.xz |
Split state groups into a separate data store (#6296)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_state.py | 2 | ||||
-rw-r--r-- | tests/utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py index 43200654f1..d6ecf102f8 100644 --- a/tests/storage/test_state.py +++ b/tests/storage/test_state.py @@ -35,7 +35,7 @@ class StateStoreTestCase(tests.unittest.TestCase): self.store = hs.get_datastore() self.storage = hs.get_storage() - self.state_datastore = self.store + self.state_datastore = self.storage.state.stores.state self.event_builder_factory = hs.get_event_builder_factory() self.event_creation_handler = hs.get_event_creation_handler() diff --git a/tests/utils.py b/tests/utils.py index 9f5bf40b4b..e2e9cafd79 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -231,7 +231,7 @@ def setup_test_homeserver( "args": {"database": ":memory:", "cp_min": 1, "cp_max": 1}, } - database = DatabaseConnectionConfig("master", database_config, ["main"]) + database = DatabaseConnectionConfig("master", database_config) config.database.databases = [database] db_engine = create_engine(database.config) |