mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer constructor, as DataStore's constructor will want it ready
This commit is contained in:
parent
4385eadc28
commit
493b1e6d3c
6 changed files with 26 additions and 20 deletions
|
@ -27,11 +27,12 @@ class ProfileStoreTestCase(unittest.TestCase):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def setUp(self):
|
||||
hs = HomeServer("test",
|
||||
db_pool=SQLiteMemoryDbPool(),
|
||||
)
|
||||
db_pool = SQLiteMemoryDbPool()
|
||||
yield db_pool.prepare()
|
||||
|
||||
yield hs.get_db_pool().prepare()
|
||||
hs = HomeServer("test",
|
||||
db_pool=db_pool,
|
||||
)
|
||||
|
||||
self.store = ProfileStore(hs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue