diff options
author | Erik Johnston <erik@matrix.org> | 2016-04-07 11:11:17 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-04-07 11:11:17 +0100 |
commit | a28d0667329a65b6c187a85befd4f95f89a550b0 (patch) | |
tree | e8b44087781b8707c458f9b886effd09f5ad9990 /tests/utils.py | |
parent | Tests (diff) | |
parent | Merge pull request #703 from matrix-org/erikj/member (diff) | |
download | synapse-a28d0667329a65b6c187a85befd4f95f89a550b0.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dns_cache
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils.py b/tests/utils.py index 52405502e9..c179df31ee 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -64,7 +64,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs): hs = HomeServer( name, db_pool=db_pool, config=config, version_string="Synapse/tests", - database_engine=create_engine(config), + database_engine=create_engine(config.database_config), get_db_conn=db_pool.get_db_conn, **kargs ) @@ -73,7 +73,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs): hs = HomeServer( name, db_pool=None, datastore=datastore, config=config, version_string="Synapse/tests", - database_engine=create_engine(config), + database_engine=create_engine(config.database_config), **kargs ) @@ -298,7 +298,7 @@ class SQLiteMemoryDbPool(ConnectionPool, object): return conn def create_engine(self): - return create_engine(self.config) + return create_engine(self.config.database_config) class MemoryDataStore(object): |