test: align test names with current assertions (#6130)

* test: align test names with current assertions

* test: align suite names and explicit configuration cases
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-10 11:49:32 +08:00
1 parent 50256940be
commit f04ed1c2eb
13 files changed
+24 -25

No files matched your search

+3 -3
View File
@@ -250,8 +250,8 @@ class TestAgentLoopTTLParam:
loop = _make_loop(tmp_path, session_ttl_minutes=25)
assert loop.auto_compact._ttl == 25
def test_loop_default_ttl_zero(self, tmp_path):
"""AutoCompact default TTL should be 0 (disabled)."""
def test_explicit_zero_ttl_disables_loop_compaction(self, tmp_path):
"""An explicit zero TTL disables idle compaction in the loop."""
loop = _make_loop(tmp_path, session_ttl_minutes=0)
assert loop.auto_compact._ttl == 0
@@ -1166,7 +1166,7 @@ class TestSummaryPersistence:
await loop.aclose()
@pytest.mark.asyncio
async def test_metadata_cleanup_on_inmemory_path(self, tmp_path):
async def test_inmemory_summary_preserves_metadata_for_restart(self, tmp_path):
"""The in-memory summary path preserves _last_summary for restart recovery."""
loop = _make_loop(tmp_path, session_ttl_minutes=15)
session = loop.sessions.get_or_create("cli:test")