Tuning test timeouts.
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled

This commit is contained in:
Roland 2026-01-23 15:28:40 -07:00
parent 31af5120b8
commit 208ac4fac7
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 3 additions and 3 deletions

View file

@ -1825,7 +1825,7 @@ async def cancel_background_tasks():
await asyncio.gather(*BACKGROUND_TASKS)
async def await_background_tasks(timeout: int = 15):
async def await_background_tasks(timeout: int = 10):
"""Awaits all background tasks, used only for testing.
Processes the FileWorker queue concurrently with background tasks to avoid

View file

@ -297,7 +297,7 @@ async def await_background_tasks(async_client, test_session):
"""
await async_client.get('/api')
async def _await_and_expire(timeout: int = 15):
async def _await_and_expire(timeout: int = 10):
await await_background_tasks_(timeout=timeout)
test_session.expire_all()

View file

@ -129,7 +129,7 @@ async def switch_worker():
switches_changed.clear()
async def await_switches(timeout: int = 10):
async def await_switches(timeout: int = 8):
if not PYTEST:
raise RuntimeError('This function is only for testing purposes')