Fix tests

This commit is contained in:
Gavin M. Roy 2020-07-08 14:44:10 -04:00
parent 440def6f3c
commit 3dc8030c3e

View file

@ -230,8 +230,10 @@ class TestCase(testing.SprocketsHttpTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
asyncio.get_event_loop().run_until_complete( loop = asyncio.get_event_loop()
self.app._postgres_connected.wait()) while self.app._postgres_connected is None:
loop.run_until_complete(asyncio.sleep(0.1))
loop.run_until_complete(self.app._postgres_connected.wait())
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):