The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(state): pin that a failed pidns lookup is not cached
kshitijk4pooref0ca5130db3
diff --git a/tests/hermes_state/test_lease_pid_namespace.py b/tests/hermes_state/test_lease_pid_namespace.pyindex 71e7818995d..1ec424127c5 100644--- a/tests/hermes_state/test_lease_pid_namespace.py+++ b/tests/hermes_state/test_lease_pid_namespace.py@@ -76,3 +76,7 @@ def test_flock_holder_record_qualifies_pid_namespaces(monkeypatch) -> None:monkeypatch.setattr(hermes_state_pidns, "_resolve_local_pid_namespace", lambda: LocalPidNamespace(None, True))assert provably_dead({"pid": dead, "pidns": _OURS, "start_ticks": 1, "acquired_at": 0.0}) is Falseassert provably_dead({"pid": dead, "start_ticks": 1, "acquired_at": 0.0}) is True++ # The failed lookup was not cached: once it resolves, a stamped record breaks.+ monkeypatch.setattr(hermes_state_pidns, "_resolve_local_pid_namespace", lambda: LocalPidNamespace(_OURS, True))+ assert provably_dead({"pid": dead, "pidns": _OURS, "start_ticks": 1, "acquired_at": 0.0}) is True