Skip to content

Commit b102dea

Browse files
fluffy314cursoragent
authored andcommitted
test(prefill): cover segmented job progress polling
Keep failed and queued status doubles wire-compatible so progress accounting reaches the existing failure and timeout branches. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fb5d785 commit b102dea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/inference_engine/distributed/test_prefill_cache_runtime_fallback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def test_import_budget_and_remote_worker_failures(monkeypatch):
374374
lambda *args, **kwargs: type("Status", (), {
375375
"status": 4,
376376
"failure_reason": "failed",
377+
"tokens_computed": 0,
377378
})(),
378379
)
379380
assert hook._compute_remote([1, 2], [b"a" * 32]) is None
@@ -386,6 +387,7 @@ def test_import_budget_and_remote_worker_failures(monkeypatch):
386387
lambda *args, **kwargs: type("Status", (), {
387388
"status": 1,
388389
"failure_reason": "",
390+
"tokens_computed": 0,
389391
})(),
390392
)
391393
assert hook._compute_remote([1, 2], [b"a" * 32]) is None

0 commit comments

Comments
 (0)