mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2024-12-28 11:24:11 +00:00
Fix tests
This commit is contained in:
parent
440def6f3c
commit
3dc8030c3e
1 changed files with 4 additions and 2 deletions
6
tests.py
6
tests.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue