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
This commit is contained in:
jif
2026-08-19 15:09:02 +00:00
committed by copyberry
parent 83915c7ca1
commit 36268f177f

View File

@@ -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)]