docs/test: align scheduling cleanup
This commit is contained in:
@@ -356,6 +356,12 @@ def _entries(root: Path, schedule_id: str, kind: str) -> list[dict[str, Any]]:
|
||||
return [row for row in rows if row["kind"] == kind]
|
||||
|
||||
|
||||
async def _kinds(root: Path, schedule_id: str) -> list[str]:
|
||||
page = FileScheduleStore(root).list_occurrences(schedule_id, limit=100)
|
||||
rows = cast(list[dict[str, Any]], page["occurrences"])
|
||||
return [row["kind"] for row in rows]
|
||||
|
||||
|
||||
def _run_ids(root: Path) -> list[str]:
|
||||
return [record.id for record in FileRunStore(root).list_runs()]
|
||||
|
||||
@@ -610,7 +616,7 @@ asyncio.run(main())
|
||||
text=True,
|
||||
)
|
||||
try:
|
||||
output, _ = process.communicate(timeout=7)
|
||||
output, _ = process.communicate(timeout=30)
|
||||
except subprocess.TimeoutExpired:
|
||||
process.kill()
|
||||
output, _ = process.communicate(timeout=5)
|
||||
@@ -1761,12 +1767,6 @@ async def test_shutdown_timeout_spares_healthy_sibling(tmp_path: Path) -> None:
|
||||
await service.stop()
|
||||
|
||||
|
||||
async def _kinds(root: Path, schedule_id: str) -> list[str]:
|
||||
page = FileScheduleStore(root).list_occurrences(schedule_id, limit=100)
|
||||
rows = cast(list[dict[str, Any]], page["occurrences"])
|
||||
return [row["kind"] for row in rows]
|
||||
|
||||
|
||||
async def test_scheduled_resume_records_completion_live(tmp_path: Path) -> None:
|
||||
"""A resumed completion lands in occurrence history live (B3).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user