File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/service-library/tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33# pylint: disable=unused-argument
44# pylint: disable=unused-import
55
6+ import asyncio
67import sys
78from collections .abc import AsyncIterable , AsyncIterator , Callable
8- from contextlib import AbstractAsyncContextManager , asynccontextmanager
9+ from contextlib import AbstractAsyncContextManager , asynccontextmanager , suppress
910from copy import deepcopy
1011from pathlib import Path
1112from typing import Any
@@ -91,7 +92,8 @@ async def _(
9192
9293 yield client
9394
94- await client .shutdown ()
95+ with suppress (TimeoutError ):
96+ await asyncio .wait_for (client .shutdown (), timeout = 5.0 )
9597
9698 async def _cleanup_redis_data (clients_manager : RedisClientsManager ) -> None :
9799 for db in RedisDatabase :
You can’t perform that action at this time.
0 commit comments