diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-08-30 10:47:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 10:47:27 +0100 |
commit | 475253a88e09b505eb1a5977985a9e9e93878b26 (patch) | |
tree | 0798039957eecc0776489a28484021998b88e954 /tests/storage/test_base.py | |
parent | Merge pull request #3768 from krombel/fix_3445 (diff) | |
parent | Fix up tests (diff) | |
download | synapse-475253a88e09b505eb1a5977985a9e9e93878b26.tar.xz |
Merge pull request #3764 from matrix-org/rav/close_db_conn_after_init
Make sure that we close db connections opened during init
Diffstat (limited to 'tests/storage/test_base.py')
-rw-r--r-- | tests/storage/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py index 7cb5f0e4cf..829f47d2e8 100644 --- a/tests/storage/test_base.py +++ b/tests/storage/test_base.py @@ -20,11 +20,11 @@ from mock import Mock from twisted.internet import defer -from synapse.server import HomeServer from synapse.storage._base import SQLBaseStore from synapse.storage.engines import create_engine from tests import unittest +from tests.utils import TestHomeServer class SQLBaseStoreTestCase(unittest.TestCase): @@ -51,7 +51,7 @@ class SQLBaseStoreTestCase(unittest.TestCase): config = Mock() config.event_cache_size = 1 config.database_config = {"name": "sqlite3"} - hs = HomeServer( + hs = TestHomeServer( "test", db_pool=self.db_pool, config=config, |