Skip to content

Commit e64a7e2

Browse files
harshaboseclaude
andcommitted
Test: the plan starts the longest task first, which is now C
plan_tasks sorts by TASK_COST, now the observed times, so C (10300 s) comes before the B1 tasks (1400 s). The test still asked for a B1 task first; it asks for C. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QKS75nmeebgQ4roJCLSfM
1 parent acdf545 commit e64a7e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/unit/test_inputs.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_only_selects_analyses_and_partial_results_are_never_reused(cfgdir, tmp_
203203
assert stages.plan_tasks(part) == ["basics"]
204204
expected = {"basics", "C", "B1:S-01", "B1:S-02", "sensitivity"}
205205
assert set(stages.plan_tasks(full)) == expected
206-
assert stages.plan_tasks(full)[0] in ("B1:S-01", "B1:S-02") # most expensive first
206+
assert stages.plan_tasks(full)[0] == "C" # most expensive first (the observed times)
207207
work = tmp_path / "w"
208208
assert study._cache_path(work, full, "basics") != study._cache_path(work, part, "basics")
209209
assert part.study.analyses == ["A", "F"] and set(ALL_ANALYSES) >= set(part.study.analyses)

0 commit comments

Comments
 (0)