server: tests: fix ci status ok not idle
This commit is contained in:
parent
0037c628ff
commit
f6ef8ac45a
1 changed files with 3 additions and 3 deletions
|
@ -699,8 +699,8 @@ async def wait_for_health_status(context,
|
||||||
if context.debug:
|
if context.debug:
|
||||||
print(f"Starting checking for health for expected_health_status={expected_health_status}")
|
print(f"Starting checking for health for expected_health_status={expected_health_status}")
|
||||||
timeout = 3 # seconds
|
timeout = 3 # seconds
|
||||||
if expected_health_status == 'idle':
|
if expected_health_status == 'ok':
|
||||||
timeout = 180 # CI slow inference
|
timeout = 10 # CI slow inference
|
||||||
interval = 0.5
|
interval = 0.5
|
||||||
counter = 0
|
counter = 0
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
|
@ -738,7 +738,7 @@ async def wait_for_health_status(context,
|
||||||
if n_completions > 0:
|
if n_completions > 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
assert False, 'timeout exceeded'
|
assert False, f'{expected_health_status} timeout exceeded {counter}s>={timeout}'
|
||||||
|
|
||||||
|
|
||||||
def assert_embeddings(embeddings):
|
def assert_embeddings(embeddings):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue