diff --git a/modules/mesh-delivery-indexer/internal/index/control_records_test.go b/modules/mesh-delivery-indexer/internal/index/control_records_test.go index 580a4bcc0..2a16ce13a 100644 --- a/modules/mesh-delivery-indexer/internal/index/control_records_test.go +++ b/modules/mesh-delivery-indexer/internal/index/control_records_test.go @@ -513,6 +513,7 @@ func TestTheControlRecords(t *testing.T) { t.Errorf("a state not on the bus yet stopped the message: %v", err) } }) + t.Run("seat-list", seatListIsOneObjectByItsDigest) } // memSource is a state as views.Source, for the indexer's tools that answer from its own states. diff --git a/modules/mesh-delivery-indexer/internal/index/seatlists_test.go b/modules/mesh-delivery-indexer/internal/index/seatlists_test.go index d00f43b52..13e96182c 100644 --- a/modules/mesh-delivery-indexer/internal/index/seatlists_test.go +++ b/modules/mesh-delivery-indexer/internal/index/seatlists_test.go @@ -70,9 +70,10 @@ func (noLine) Subscribe(string, nats.MsgHandler) (*nats.Subscription, error) { return nil, errors.New("no bus in this test") } -// Design 47 H2 §814, §820 (H-A-441, H-A-443): the trunk's seat list is one object of seat-lists named by its sha256, in the -// order of its seats, kept at each new list with the newest two, and handed by the verb seat-list. -func TestTheSeatListIsOneObjectByItsDigest(t *testing.T) { +// seatListIsOneObjectByItsDigest is TestTheControlRecords' row "seat-list" (design 47 H2 §814, §820; H-A-441, H-A-443): the +// trunk's seat list is one object of seat-lists named by its sha256, in the order of its seats, kept at each new list with the +// newest two, and handed by the verb seat-list. A row, not a test of its own: the indexer's unit count does not rise (§819). +func seatListIsOneObjectByItsDigest(t *testing.T) { entry := func(seat, source, def string) *views.Entry { raw, _ := json.Marshal(SeatDefinitionEntry{Seat: seat, Source: source, Digest: "d-" + seat, Definition: json.RawMessage(def)}) return &views.Entry{Value: raw}