Skip to content

Commit 5227321

Browse files
author
ochafik
committed
tool-call: when slow server tests fail, hint to run python scripts/fetch_server_test_models.py
1 parent 35ac17f commit 5227321

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/server/tests/features/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def after_scenario(context, scenario):
3333
print(line)
3434
if not is_server_listening(context.server_fqdn, context.server_port):
3535
print("\x1b[33;101mERROR: Server stopped listening\x1b[0m")
36+
if 'slow' in set(str(t) for t in scenario.tags):
37+
print("\x1b[33;101mERROR: Make sure to precache models before running slow scenarios:\n python scripts/fetch_server_test_models.py\x1b[0m")
3638

3739
if context.server_process.poll() is not None:
3840
assert False, f"Server not running pid={context.server_process.pid} ..."

0 commit comments

Comments
 (0)