mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 17:14:02 +00:00
test_tornado: Add nocoverage for task cleanup.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
12f95a81a9
commit
b50ac9d8df
@@ -49,7 +49,7 @@ class TornadoWebTestCase(ZulipTestCase):
|
|||||||
self.http_server.stop()
|
self.http_server.stop()
|
||||||
await self.http_server.close_all_connections()
|
await self.http_server.close_all_connections()
|
||||||
tasks = set(asyncio.all_tasks()) - {asyncio.current_task()}
|
tasks = set(asyncio.all_tasks()) - {asyncio.current_task()}
|
||||||
if tasks:
|
if tasks: # nocoverage
|
||||||
await asyncio.wait(tasks)
|
await asyncio.wait(tasks)
|
||||||
|
|
||||||
async def fetch_async(self, method: str, path: str, **kwargs: Any) -> HTTPResponse:
|
async def fetch_async(self, method: str, path: str, **kwargs: Any) -> HTTPResponse:
|
||||||
|
|||||||
Reference in New Issue
Block a user