Skip to content

The agent that grows with you

test(kanban): per-profile cap fixture re-applies the memory-sample neutralizer

Tekniuma26c74c3d120
diff --git a/tests/hermes_cli/test_kanban_per_profile_cap.py b/tests/hermes_cli/test_kanban_per_profile_cap.py
index 2741f6b34c0..232a21b3195 100644
--- a/tests/hermes_cli/test_kanban_per_profile_cap.py
+++ b/tests/hermes_cli/test_kanban_per_profile_cap.py
@@ -27,6 +27,10 @@ def isolated_kanban_home_with_profiles(monkeypatch):
if mod.startswith("hermes_cli") or mod.startswith("hermes_state") or mod == "hermes_constants":
del sys.modules[mod]
from hermes_cli import kanban_db
+ from hermes_cli import kanban_db_dispatch
+ # The module purge above discards the conftest's memory-sample neutralizer;
+ # re-apply it so the host's live memory pressure cannot cap this tick.
+ monkeypatch.setattr(kanban_db_dispatch, "_system_memory_sample", lambda: {})
yield kanban_db