Merge pull request #2665 from langbot-app/test/regression-boundary-cleanup-20261017

test: remove self-confirming tests and strengthen regression boundaries
This commit is contained in:
huanghuoguoguo
2026-10-17 11:26:46 +08:00
committed by GitHub
parent e11c3e2599
commit 5641637d3d
8 changed files with 132 additions and 829 deletions
+2 -7
View File
@@ -194,16 +194,11 @@ class TestLogCache:
assert result == ''
def test_get_log_by_pointer_nonexistent_page(self):
"""get_log_by_pointer handles nonexistent page number."""
"""A cursor beyond the tail returns no logs and resumes at the actual tail."""
cache = LogCache()
cache.add_log('log 1')
# Request page that doesn't exist
result, page_num, offset = cache.get_log_by_pointer(99, 0)
# Returns empty or last available
# Behavior depends on implementation
assert cache.get_log_by_pointer(99, 0) == ('', 0, 1)
def test_max_cached_pages_constant(self):
"""MAX_CACHED_PAGES is defined and reasonable."""