use create_task instead

This commit is contained in:
Victor Shyba 2020-09-10 13:19:48 -03:00
parent a5c117b542
commit cb60cd99f4

View file

@ -616,7 +616,7 @@ class TestGeneralBlockchainSync(SyncingBlockchainTestCase):
async def test_sync_waits_for_lbrycrd_to_start(self):
await self.sync.stop()
await self.chain.stop()
sync_start = asyncio.ensure_future(self.sync.start())
sync_start = asyncio.create_task(self.sync.start())
await asyncio.sleep(0)
await self.chain.start()
await sync_start