summaryrefslogtreecommitdiff
path: root/examples/server
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-02-25 22:48:33 +0100
committerGitHub <noreply@github.com>2024-02-25 22:48:33 +0100
commite3965cf35aac00d4e24998c8a3d0093ae1d98bd3 (patch)
treeec711cfe7adc51e544839c88446722aeb67f2082 /examples/server
parent8b350356b28f782deab63d8b0e9ae103ceb25fcd (diff)
server: tests - slow inference causes timeout on the CI (#5715)
* server: tests - longer inference timeout for CI
Diffstat (limited to 'examples/server')
-rw-r--r--examples/server/tests/features/steps/steps.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/server/tests/features/steps/steps.py b/examples/server/tests/features/steps/steps.py
index 8e4babf2..ad87fcb8 100644
--- a/examples/server/tests/features/steps/steps.py
+++ b/examples/server/tests/features/steps/steps.py
@@ -699,6 +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 == 'ok':
+ timeout = 10 # CI slow inference
interval = 0.5
counter = 0
async with aiohttp.ClientSession() as session:
@@ -736,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):