mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Tuning test timeouts.
This commit is contained in:
parent
31af5120b8
commit
208ac4fac7
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue