Skip to content

The agent that grows with you

test(tui_gateway): route lookup-failure regression through has_live_for_session

Teknium719c1b03669c
diff --git a/tests/test_tui_gateway_server.py b/tests/test_tui_gateway_server.py
index 4a8256422d1..9eb3468d5be 100644
--- a/tests/test_tui_gateway_server.py
+++ b/tests/test_tui_gateway_server.py
@@ -3783,13 +3783,13 @@ def test_ws_orphan_reap_retries_when_delegation_lookup_fails(monkeypatch):
def start(self):
return None
- def _raise_lookup_error(_origin_ui_session_id):
+ def _raise_lookup_error(*_args, **_kwargs):
raise RuntimeError("delegation registry unavailable")
monkeypatch.setattr(server, "_WS_ORPHAN_REAP_GRACE_S", 0.01)
monkeypatch.setattr(server.threading, "Timer", _Timer)
monkeypatch.setattr(
- async_delegation, "active_for_session", _raise_lookup_error
+ async_delegation, "has_live_for_session", _raise_lookup_error
)
monkeypatch.setattr(
server,