The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(state): assert the exact surviving-index count
kshitijk4poor8e0c55de7145
diff --git a/tests/hermes_state/test_fts_rebuild_corruption_class.py b/tests/hermes_state/test_fts_rebuild_corruption_class.pyindex 0614152c921..5a7263aef5b 100644--- a/tests/hermes_state/test_fts_rebuild_corruption_class.py+++ b/tests/hermes_state/test_fts_rebuild_corruption_class.py@@ -61,6 +61,7 @@ def test_one_corrupt_index_does_not_stop_the_remaining_indexes(db, monkeypatch,"""Only messages_fts is corrupt; trigram/cjk must still be processed — the loop survivesa corruption-class failure on one index. The trailing ``(`` keeps the match off``messages_fts_trigram``/``_cjk``. optimize_fts() shares the per-index loop shape."""+ expected = len(db._present_fts_tables()) - 1monkeypatch.setattr(db._conn,"execute",@@ -68,4 +69,4 @@ def test_one_corrupt_index_does_not_stop_the_remaining_indexes(db, monkeypatch,db._conn.execute),)- assert getattr(db, method)() >= 1+ assert getattr(db, method)() == expected