mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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()
|
||||
await self.http_server.close_all_connections()
|
||||
tasks = set(asyncio.all_tasks()) - {asyncio.current_task()}
|
||||
if tasks:
|
||||
if tasks: # nocoverage
|
||||
await asyncio.wait(tasks)
|
||||
|
||||
async def fetch_async(self, method: str, path: str, **kwargs: Any) -> HTTPResponse:
|
||||
|
Reference in New Issue
Block a user