Fix tests

This commit is contained in:
grossmj 2026-02-16 19:32:47 +08:00
parent bfed330ec2
commit 013ec341b3
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -87,7 +87,6 @@ def create_shutdown_handler(app: FastAPI) -> Callable:
async def shutdown_handler() -> None:
global auto_discover_images_task_handle
if auto_discover_images_task_handle is not None and not auto_discover_images_task_handle.cancelled():
auto_discover_images_task_handle.cancel()
await HTTPClient.close_session()