From a5f5e6b015b871909f9b7fe0c72252008aab40fa Mon Sep 17 00:00:00 2001 From: ochenstarik-ui <267932263+ochenstarik-ui@users.noreply.github.com> Date: Mon, 31 Aug 2026 18:23:14 +0700 Subject: [PATCH] test(memory): use dynamic recorded commit in freshness test --- tests/test_memory_freshness_a47.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_memory_freshness_a47.py b/tests/test_memory_freshness_a47.py index 9a22a7e..e144e4d 100644 --- a/tests/test_memory_freshness_a47.py +++ b/tests/test_memory_freshness_a47.py @@ -25,6 +25,7 @@ def test_check_memory_freshness_real_repo(): canonical_memory = Path("/srv/projects/AI-Memory/01_PROJECTS/hermes-hub/CURRENT_STATE.md") if canonical_memory.exists(): + recorded_commit = extract_recorded_commit(canonical_memory.read_text(encoding="utf-8")) is_fresh, summary = check_memory_freshness( repo_path=REPO_ROOT, memory_file=canonical_memory, @@ -32,7 +33,7 @@ def test_check_memory_freshness_real_repo(): ) assert is_fresh is True assert "FRESH" in summary - assert "80aab00" in summary + assert recorded_commit in summary def test_check_memory_freshness_missing_file_strict_vs_non_strict(tmp_path):