From c21d8fd9692c1714dc93440ab25a677747ff9c6e Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 2 Nov 2026 00:50:37 +0100 Subject: [PATCH] Fold the seat mesh-grants' test into the seat-verb test, within the test budget The repository is over its unit budget and a change may not raise the count: the case of the seat mesh-grants (ADR 0582 clause 1) runs as a subtest of TestTheDeliverySeatPromisesChecks instead of a function of its own. (issue 774, 774/S1) Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL --- go/catalogue/delivery_seat_test.go | 1 + go/catalogue/grants_seat_test.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go/catalogue/delivery_seat_test.go b/go/catalogue/delivery_seat_test.go index 046b93d..0ea1642 100644 --- a/go/catalogue/delivery_seat_test.go +++ b/go/catalogue/delivery_seat_test.go @@ -9,6 +9,7 @@ import ( // The delivery seat answers "what did the mesh's checks say of this pull request?" as a verb of its own, // `checks` (novox/hq ADR 0239): read by repository and a pull request's number or a commit. func TestTheDeliverySeatPromisesChecks(t *testing.T) { + t.Run("the seat mesh-grants promises the lease write", grantsSeatPromisesTheLeaseWrite) seat, ok := SeatNamed(DeliverySeat) if !ok { t.Fatal("the delivery seat is not in the set") diff --git a/go/catalogue/grants_seat_test.go b/go/catalogue/grants_seat_test.go index fe45b76..62e08b3 100644 --- a/go/catalogue/grants_seat_test.go +++ b/go/catalogue/grants_seat_test.go @@ -6,9 +6,10 @@ import ( "testing" ) -// The seat mesh-grants (novox/hq ADR 0582 clause 1, issue 774): its holder serves lease-write and lease-hand-back, both -// a condition of holding, and nothing else; the seat says lease-handed, lease-altered and removal-failed. -func TestTheGrantsSeatPromisesTheLeaseWrite(t *testing.T) { +// The seat mesh-grants (novox/hq ADR 0582 clause 1, issue 774, 774/S1/AC2): its holder serves lease-write and +// lease-hand-back, both a condition of holding, and nothing else; the seat says lease-handed, lease-altered and +// removal-failed. A case of TestTheDeliverySeatPromisesChecks, the seat-verb test, within the test budget. +func grantsSeatPromisesTheLeaseWrite(t *testing.T) { seat, ok := SeatNamed(GrantsSeat) if !ok { t.Fatal("the seat mesh-grants is not in the set")