From f6ef8ac45ac3995749711a10dbad31edec9031ca Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Sun, 25 Feb 2024 22:41:44 +0100 Subject: [PATCH] server: tests: fix ci status ok not idle --- examples/server/tests/features/steps/steps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/tests/features/steps/steps.py b/examples/server/tests/features/steps/steps.py index d2f1d7393..ad87fcb82 100644 --- a/examples/server/tests/features/steps/steps.py +++ b/examples/server/tests/features/steps/steps.py @@ -699,8 +699,8 @@ async def wait_for_health_status(context, if context.debug: print(f"Starting checking for health for expected_health_status={expected_health_status}") timeout = 3 # seconds - if expected_health_status == 'idle': - timeout = 180 # CI slow inference + if expected_health_status == 'ok': + timeout = 10 # CI slow inference interval = 0.5 counter = 0 async with aiohttp.ClientSession() as session: @@ -738,7 +738,7 @@ async def wait_for_health_status(context, if n_completions > 0: return - assert False, 'timeout exceeded' + assert False, f'{expected_health_status} timeout exceeded {counter}s>={timeout}' def assert_embeddings(embeddings):