test: harden scheduling review boundaries

This commit is contained in:
lda
2026-09-10 02:17:27 +07:00 Verified
parent ed70223c1b
commit f8ed8e2192
10 changed files with 231 additions and 25 deletions
+4 -2
View File
@@ -82,8 +82,10 @@ def test_active_attempt_marker_is_durable(tmp_path: Path) -> None:
# executing. Echo runs complete immediately so restore fails first on
# non-interrupted status; the ACTIVE guard is exercised on interrupted
# runs in recovery tests (T10).
assert store.get_resume_attempt(run_id) is not None
assert store.get_resume_attempt(run_id).state == "ACTIVE" # type: ignore[union-attr]
reopened = FileRunStore(store.root)
attempt = reopened.get_resume_attempt(run_id)
assert attempt is not None
assert attempt.state == "ACTIVE"
def test_stopped_checkpoint_echoes_attempt_id(tmp_path: Path) -> None: