mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
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:
parent
a14caf7759
commit
7487afbd99
1 changed files with 5 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue