EV-59 review: CHANGELOG line; T21 power-unknown check exact
checks / unit (pull_request) Successful in 50m12s
infra-pin / fresh (pull_request) Successful in 1s

Reviewer fixes, Minor only, no implementation change:
- CHANGELOG.md: the user-visible change under "Not in a release yet".
- test_ev59 T21 (power unknown): assert the 3 restore tries at 20, 25, 30,
  the give-up and one REF, instead of "at most 3" (which passed with 0).
  Red on 1b909fb (20, 25, 30, 90, 150).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-12-01 09:19:38 +01:00
parent e522e6ffbb
commit 7628cacdb7
2 changed files with 6 additions and 3 deletions
+5 -3
View File
@@ -693,9 +693,11 @@ check(f"T21: the read-back unknown (allowed and setpoint None): judged by the "
len(nz(R21)) == 3 and R21.rows[399]["gave_up"] and len(refs(R21)) == 1
and not R21.errs)
R21b = run(refuse, 400, power=lambda t, d: None, cur=16.0, a=16.0)
check(f"T21: the power unknown: the sequence ends in 3 tries at most, no "
f"exception ({nz(R21b)}, {R21b.errs[:1]})",
len(nz(R21b)) <= 3 and not R21b.errs)
check(f"T21: the power unknown: the drawing timeout's restore is tried 3 "
f"times (20, 25, 30), then the give-up and one REF, no exception "
f"({nz(R21b)}, {refs(R21b)}, {R21b.errs[:1]})",
nz(R21b) == [20, 25, 30] and R21b.rows[30]["gave_up"]
and refs(R21b) == [30] and not R21b.errs)
R22 = run(refuse, 600, avail=lambda t: False)
check("T22: no charger: 0 writes, no lines, no REF",
not R22.drv.calls and not R22.log and not refs(R22))