Repository navigation
Commit 8b170ed
committed
test(daemon): assert the prepare budget is wired, not that zero time passed
`prepareAppleRunner` spends one budget across the boot wait and the runner, so
what reaches the runner is `--timeout` minus whatever readiness already used.
The assertion demanded exactly 240000, which holds only when both `Date.now()`
reads land in the same millisecond; CI caught it at 239999.
Assert each budget carries the unspent remainder and never exceeds the request.
Both bounds are live: forcing the remainder to 1 fails the lower bound, and
re-spending the full budget fails the upper.1 parent ea79a2d commit 8b170ed
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
609 | 607 | | |
610 | 608 | | |
611 | 609 | | |
612 | 610 | | |
613 | 611 | | |
614 | 612 | | |
615 | 613 | | |
616 | | - | |
617 | 614 | | |
618 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
619 | 629 | | |
620 | 630 | | |
621 | 631 | | |
| |||
0 commit comments