diff --git a/code-rs/core/src/codex/streaming.rs b/code-rs/core/src/codex/streaming.rs index 45d1431cb1c..83fc8b54399 100644 --- a/code-rs/core/src/codex/streaming.rs +++ b/code-rs/core/src/codex/streaming.rs @@ -14165,7 +14165,6 @@ mod tests { format_exec_output_with_limit, image_generation_artifact_path, is_context_overflow_stream_error, - is_usage_limit_stream_error, save_image_generation_result, save_image_generation_sidecar, ImageGenerationTurnMetadata, @@ -14355,17 +14354,6 @@ mod tests { assert!(!is_context_overflow_stream_error("temporary network timeout")); } - #[test] - fn usage_limit_detection_matches_transport_errors() { - assert!(is_usage_limit_stream_error( - "[transport] Transport error: You've hit your usage limit. Try again in 5 days 47 minutes." - )); - assert!(is_usage_limit_stream_error( - "response.failed: usage_not_included" - )); - assert!(!is_usage_limit_stream_error("temporary network timeout")); - } - #[test] fn auto_context_judge_prefers_spark_then_mini() { assert_eq!(