Revert "Replace asyncio.ensure_future() with asyncio.create_task()"

This reverts commit bac6a4b2bf.

This is not actually something we want
This commit is contained in:
mathieui
2021-12-13 21:25:41 +01:00
parent 14ae84d666
commit be6dde17f1
6 changed files with 16 additions and 16 deletions

View File

@@ -622,7 +622,7 @@ class SlixTest(unittest.TestCase):
def wait_for_send_queue(self):
loop = asyncio.get_event_loop()
future = asyncio.create_task(self.xmpp.run_filters(), loop=loop)
future = asyncio.ensure_future(self.xmpp.run_filters(), loop=loop)
queue = self.xmpp.waiting_queue
loop.run_until_complete(queue.join())
future.cancel()