Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander Whitestone
1898f942d9 fix: update watchdog test for 5 checks including Kimi Heartbeat (closes #1512)
Some checks failed
CI / test (pull_request) Failing after 1m48s
CI / validate (pull_request) Failing after 1m15s
Review Approval Gate / verify-review (pull_request) Successful in 5s
run_health_checks() returns 5 checks (added check_kimi_heartbeat()),
but test expected 4. Updated test to expect 5 and verify Kimi Heartbeat
is present.
2026-04-14 22:44:23 -04:00
2 changed files with 4 additions and 9 deletions

View File

@@ -46,9 +46,7 @@ class MemPalaceResult:
def _get_client(palace_path: Path):
"""Return a ChromaDB persistent client, or raise MemPalaceUnavailable."""
try:
import os
os.environ["ANONYMIZED_TELEMETRY"] = "false"
import chromadb # type: ignore
import chromadb # type: ignore
except ImportError as exc:
raise MemPalaceUnavailable(
"ChromaDB is not installed. "
@@ -61,11 +59,7 @@ import chromadb # type: ignore
"Run 'mempalace mine' to initialise the palace."
)
import chromadb.config
return chromadb.PersistentClient(
path=str(palace_path),
settings=chromadb.config.Settings(anonymized_telemetry=False),
)
return chromadb.PersistentClient(path=str(palace_path))
def search_memories(

View File

@@ -303,9 +303,10 @@ class TestRunHealthChecks:
heartbeat_path=tmp_path / "missing.json",
)
assert len(report.checks) == 4
assert len(report.checks) == 5
check_names = {c.name for c in report.checks}
assert "WebSocket Gateway" in check_names
assert "Consciousness Loop" in check_names
assert "Heartbeat" in check_names
assert "Syntax Health" in check_names
assert "Kimi Heartbeat" in check_names