Skip to content

The agent that grows with you

test(tui_gateway): accept predicate kwarg in _close_session_by_id stub

Teknium9667236ccbee
diff --git a/tests/tui_gateway/test_protocol.py b/tests/tui_gateway/test_protocol.py
index 00678f4b79b..37efc79918a 100644
--- a/tests/tui_gateway/test_protocol.py
+++ b/tests/tui_gateway/test_protocol.py
@@ -356,7 +356,9 @@ def test_enforce_session_cap_evicts_oldest_detached_only(server, monkeypatch):
monkeypatch.setattr(server, "_load_cfg", lambda: {"max_live_sessions": 2})
evicted: list[str] = []
monkeypatch.setattr(
- server, "_close_session_by_id", lambda sid, end_reason=None: evicted.append(sid)
+ server,
+ "_close_session_by_id",
+ lambda sid, end_reason=None, predicate=None: evicted.append(sid),
)
def _ready() -> threading.Event: