From 33898503abdbdea5969a5c010e91e9012638ebb2 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Mon, 9 Nov 2026 17:39:27 -0800 Subject: [PATCH] test(integration): drop the empty-string n case from the Gemini long decode test Google AI Studio answers generationConfig.candidate_count "" with a 400 before it generates anything, so the truncated 200 this case scripts is a reply Google never gives. The other malformed count and cap cases stay. This also removes the skip that covered only that case on this line. --- tests/integration/providers/test_gemini_long_decode_wire.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/integration/providers/test_gemini_long_decode_wire.py b/tests/integration/providers/test_gemini_long_decode_wire.py index 954b1077cc6..63583a586fb 100644 --- a/tests/integration/providers/test_gemini_long_decode_wire.py +++ b/tests/integration/providers/test_gemini_long_decode_wire.py @@ -1211,7 +1211,6 @@ def test_request_with_no_output_cap_is_never_continued_and_returns_googles_cut_w _NOT_A_NUMBER: Final[tuple[tuple[str, Mapping[str, JsonValue], int | None], ...]] = ( ("n-string", {"n": "1"}, CAP), ("n-list", {"n": [1]}, CAP), - ("n-empty", {"n": ""}, CAP), ("n-5kb", {"n": "1" * 5120}, CAP), ("max_tokens-string", {"max_tokens": "300"}, None), ("max_tokens-list", {"max_tokens": [300]}, None), @@ -1234,8 +1233,6 @@ def _halves() -> Respond: def test_count_or_cap_that_is_not_a_number_makes_one_request_and_is_never_continued( gateway: Gateway, extra: Mapping[str, JsonValue], cap: int | None, stream: bool ) -> None: - if extra.get("n") == "": - pytest.skip('BUG: empty-string n can trigger continuation, deferred on rc/1.109.0 only') with wire_server(_halves()) as wire, gateway.scenario() as scenario: model: Final = register(gateway, scenario, "gemini", wire) body: Final = request_body("chat", model, stream, {**NO_CACHE, **extra}, cap=cap)