mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
test: Add timeout to test_conversation_error_handling to prevent CI hang
Following the same pattern as test_conversation_context_loading, adding a 60s timeout to prevent CI deadlock after running 25+ tests. This is a known issue with connection pool exhaustion or event loop state in the CI environment.
This commit is contained in:
parent
50cae44dd0
commit
8d30c4018d
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ class TestConversationResponses:
|
||||||
|
|
||||||
assert "apple" in response.output_text.lower()
|
assert "apple" in response.output_text.lower()
|
||||||
|
|
||||||
|
@pytest.mark.timeout(60, method="thread")
|
||||||
def test_conversation_error_handling(self, openai_client, text_model_id):
|
def test_conversation_error_handling(self, openai_client, text_model_id):
|
||||||
"""Test error handling for invalid and nonexistent conversations."""
|
"""Test error handling for invalid and nonexistent conversations."""
|
||||||
# Invalid conversation ID format
|
# Invalid conversation ID format
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue