The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(tui): keep one invariant test per idle-poll mechanism (#108005)
kshitijk4poor9720e9516285
diff --git a/tests/hermes_cli/test_active_sessions.py b/tests/hermes_cli/test_active_sessions.pyindex edbb97cc883..108f388984b 100644--- a/tests/hermes_cli/test_active_sessions.py+++ b/tests/hermes_cli/test_active_sessions.py@@ -739,17 +739,3 @@ def test_pid_liveness_self_pid_skips_exists_probe(monkeypatch):monkeypatch.setattr("gateway.status._pid_exists", _count_exists)assert active_sessions._pid_liveness(os.getpid()) is Trueassert exists_calls == []---def test_pid_liveness_foreign_pid_still_calls_exists(monkeypatch):- """CONTROL: a different positive pid still goes through gateway.status._pid_exists."""- exists_calls: list = []-- def _count_exists(pid):- exists_calls.append(pid)- return False-- monkeypatch.setattr("gateway.status._pid_exists", _count_exists)- foreign = os.getpid() + 99999- assert active_sessions._pid_liveness(foreign) is False- assert exists_calls == [foreign]diff --git a/tests/tui_gateway/test_bot_delivery_poll_throttle.py b/tests/tui_gateway/test_bot_delivery_poll_throttle.pyindex f79afcf9cda..8d638d2038d 100644--- a/tests/tui_gateway/test_bot_delivery_poll_throttle.py+++ b/tests/tui_gateway/test_bot_delivery_poll_throttle.py@@ -70,10 +70,3 @@ def test_idle_poller_throttles_bot_live_delivery_probe(monkeypatch):f"idle bot-delivery probe ran {len(calls)} times in ~1.2s; ""expected 1 (or ≤2 with first-iteration immediate fire), not every 0.5s tick")---def test_bot_delivery_poll_seconds_bound_on_server_after_bind():- """Supplement: the throttle constant is visible on the rebound server module."""- cadence = server._BOT_DELIVERY_POLL_SECONDS- assert 2.0 <= cadence <= 5.0- assert cadence == 5.0