forked from LBRYCommunity/lbry-sdk
use create_task instead
This commit is contained in:
parent
a5c117b542
commit
cb60cd99f4
1 changed files with 1 additions and 1 deletions
|
@ -616,7 +616,7 @@ class TestGeneralBlockchainSync(SyncingBlockchainTestCase):
|
||||||
async def test_sync_waits_for_lbrycrd_to_start(self):
|
async def test_sync_waits_for_lbrycrd_to_start(self):
|
||||||
await self.sync.stop()
|
await self.sync.stop()
|
||||||
await self.chain.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 asyncio.sleep(0)
|
||||||
await self.chain.start()
|
await self.chain.start()
|
||||||
await sync_start
|
await sync_start
|
||||||
|
|
Loading…
Reference in a new issue