mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 11:05:49 +03:00
It's considered polite to actually wait for DB prepare before running tests
This commit is contained in:
parent
53d0f69dc3
commit
9774949cc9
1 changed files with 4 additions and 1 deletions
|
@ -53,11 +53,14 @@ class SQLiteMemoryDbPool(ConnectionPool, object):
|
|||
|
||||
|
||||
class ProfileStoreTestCase(unittest.TestCase):
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def setUp(self):
|
||||
hs = HomeServer("test",
|
||||
db_pool=SQLiteMemoryDbPool(),
|
||||
)
|
||||
hs.get_db_pool().prepare()
|
||||
|
||||
yield hs.get_db_pool().prepare()
|
||||
|
||||
self.store = ProfileStore(hs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue