0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-13 22:13:29 +01:00

It's considered polite to actually wait for DB prepare before running tests

This commit is contained in:
Paul "LeoNerd" Evans 2014-09-10 16:50:09 +01:00
parent 53d0f69dc3
commit 9774949cc9

View file

@ -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)