Repository navigation
Commit e51a880
committed
test(remote): check the platform the allocator is asked for, not just the flags
The case named "never sends apple" only read the returned flag. The lease request is
the thing a provider acts on, so the claim was pinned one layer away from the
surface that had to hold. Each command now keeps its allocate handle: the guarded
case asserts the request the provider received names `macos` rather than the `apple`
the record still held, and the refused case asserts no request was made at all.
Verified by mutation: letting the recorded alias survive into the materialized state
fails on the leaf assertion, and an earlier test catches it too.1 parent 65abe33 commit e51a880
1 file changed
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
663 | 664 | | |
664 | 665 | | |
665 | 666 | | |
666 | 667 | | |
667 | | - | |
668 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
669 | 675 | | |
670 | 676 | | |
671 | 677 | | |
| |||
679 | 685 | | |
680 | 686 | | |
681 | 687 | | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
| 688 | + | |
686 | 689 | | |
| 690 | + | |
687 | 691 | | |
688 | 692 | | |
689 | 693 | | |
| |||
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
706 | 715 | | |
707 | 716 | | |
708 | 717 | | |
| |||
725 | 734 | | |
726 | 735 | | |
727 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
728 | 742 | | |
729 | 743 | | |
730 | 744 | | |
| |||
0 commit comments