fix(ci): ruff format spoolbuddy.py; raise SettingsPage test timeout

- backend/app/api/routes/spoolbuddy.py: re-formatted via ruff (lambda
    conditional wrapped in parens — the formatter check fires when the
    expression spans multiple lines without grouping)
  - frontend/src/__tests__/pages/SettingsPage.test.tsx: per-test timeout
    raised to 15s for the external_camera_snapshot_url PATCH test; the
    default 5s was tight enough on GitHub Actions runners that user.type()
    of the 49-char URL + 800ms debounce occasionally blew past it
This commit is contained in:
maziggy
2026-05-11 13:43:16 +02:00
parent a19f74252e
commit dd1fa6ee45
2 changed files with 43 additions and 33 deletions
+8 -6
View File
@@ -1362,13 +1362,15 @@ async def trigger_daemon_update(
# Run the SSH update in the background — hold reference to prevent GC cancellation
_ssh_update_task = asyncio.create_task(perform_ssh_update(device_id, device.ip_address))
_ssh_update_task.add_done_callback(
lambda t: logger.error(
"SSH update task for device %s ended unexpectedly (cancelled=%s)",
device_id,
t.cancelled(),
lambda t: (
logger.error(
"SSH update task for device %s ended unexpectedly (cancelled=%s)",
device_id,
t.cancelled(),
)
if (t.cancelled() or t.exception() is not None)
else None
)
if (t.cancelled() or t.exception() is not None)
else None
)
return {"status": "ok", "message": "SSH update started"}