From cb60cd99f40255c1371046deaba4340234288427 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 10 Sep 2020 13:19:48 -0300 Subject: [PATCH] use create_task instead --- tests/integration/blockchain/test_blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/blockchain/test_blockchain.py b/tests/integration/blockchain/test_blockchain.py index a706e079e..2e94a0990 100644 --- a/tests/integration/blockchain/test_blockchain.py +++ b/tests/integration/blockchain/test_blockchain.py @@ -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