mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-22 03:49:18 +02:00
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:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user