test(gateway): update stale expectation — #31884 surfaces retry hint for uninterrupted zero-call drops

The PR predates #31884, which changed the non-interrupted api_calls==0
empty path from silence to a retry hint. Flip the contributed test to
assert the current (correct) behavior.
This commit is contained in:
Hermes Agent 2026-07-06 03:20:22 -07:00 committed by Teknium
parent a14caf7759
commit 7487afbd99

View file

@ -310,8 +310,10 @@ class TestPostStopInterruptSwallow:
assert response == ""
def test_uninterrupted_zero_api_calls_stays_silent(self):
"""No interrupt and no work — unchanged behavior."""
def test_uninterrupted_zero_api_calls_surfaces_retry_hint(self):
"""No interrupt and no work — #31884 (landed after this PR was
written) surfaces a retry hint instead of silence for the
generation-race drop."""
from gateway.run import _normalize_empty_agent_response
agent_result = {
@ -323,7 +325,7 @@ class TestPostStopInterruptSwallow:
response = _normalize_empty_agent_response(agent_result, "", history_len=10)
assert response == ""
assert "send it again" in response
@pytest.mark.asyncio
async def test_interrupt_and_clear_session_evicts_cached_agent(self):