Match terminal goal error text

This commit is contained in:
Ahmed Ibrahim
2026-06-08 19:16:12 -07:00
parent ed2fb85cba
commit 0351cd28ad
@@ -516,7 +516,11 @@ def test_cancel_goal_retries_the_server_reported_active_turn(tmp_path) -> None:
@pytest.mark.parametrize(
("error_code", "expected_error", "expected_status"),
[
("server_error", "goal model failed", ThreadGoalStatus.blocked),
(
"server_error",
"stream disconnected before completion: goal model failed",
ThreadGoalStatus.blocked,
),
(
"insufficient_quota",
"Quota exceeded. Check your plan and billing details.",