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