Skip to content

The agent that grows with you

fix: reconstruct fused test after conflict resolution

kshitijk4poor98165daacb20
diff --git a/tests/gateway/test_sse_agent_cancel.py b/tests/gateway/test_sse_agent_cancel.py
index 38531e5199c..f46d2b57470 100644
--- a/tests/gateway/test_sse_agent_cancel.py
+++ b/tests/gateway/test_sse_agent_cancel.py
@@ -357,6 +357,13 @@ class TestSSEAgentFailureFinishReason:
assert "error" in finish
assert "data: [DONE]" in sse
+ def test_failed_result_dict_reports_error_not_stop(self):
+ async def failed():
+ return (
+ {"final_response": "", "failed": True, "completed": False,
+ "error": "upstream model 500"},
+ {"input_tokens": 5, "output_tokens": 0, "total_tokens": 5},
+ )
reason, finish, _ = self._run(failed)
assert reason == "error"