mirror of
https://github.com/sprockets/sprockets-postgres.git
synced 2024-12-27 11:17:30 +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):
|
||||
super().setUp()
|
||||
asyncio.get_event_loop().run_until_complete(
|
||||
self.app._postgres_connected.wait())
|
||||
loop = asyncio.get_event_loop()
|
||||
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
|
||||
def setUpClass(cls):
|
||||
|
|
Loading…
Reference in a new issue