From 36268f177f557c0443e5c9475dc0c68852b49373 Mon Sep 17 00:00:00 2001 From: jif Date: Wed, 19 Aug 2026 15:09:02 +0000 Subject: [PATCH] Use a narrow fixture for the unified image resize test (#39501) ## What changed Update the unified image budget integration test to resize a `6401x1` image to `6000x1` and verify that the model receives the corresponding resize notice. GitOrigin-RevId: 401e9728dc4bd6f0122bbc62f996a0b961e22b3a --- codex-rs/core/tests/suite/view_image.rs | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/codex-rs/core/tests/suite/view_image.rs b/codex-rs/core/tests/suite/view_image.rs index a8eb8a3d17..75eb32dbdc 100644 --- a/codex-rs/core/tests/suite/view_image.rs +++ b/codex-rs/core/tests/suite/view_image.rs @@ -379,20 +379,13 @@ async fn user_turn_unified_image_budget_enforces_dimension_and_patch_limits() -> { skip_if_no_network!(Ok(())); - for (source_dimensions, expected_dimensions, resize_notice_expectation) in [ - ((6401, 100), (6000, 94), ResizeNoticeExpectation::Disabled), - ((3201, 3201), (3200, 3200), ResizeNoticeExpectation::Enabled), - ] { - assert_user_turn_local_image_resizes_to( - source_dimensions, - expected_dimensions, - ImageBudgetPolicy::Unified, - resize_notice_expectation, - ) - .await?; - } - - Ok(()) + assert_user_turn_local_image_resizes_to( + (6401, 1), + (6000, 1), + ImageBudgetPolicy::Unified, + ResizeNoticeExpectation::Enabled, + ) + .await } #[tokio::test(flavor = "multi_thread", worker_threads = 2)]