diff --git a/go/catalogue/seats_test.go b/go/catalogue/seats_test.go index 15de169..c5299d2 100644 --- a/go/catalogue/seats_test.go +++ b/go/catalogue/seats_test.go @@ -56,6 +56,8 @@ func TestUseSeatsReplacesTheSetButNeverEmptiesIt(t *testing.T) { } whole := []string{"npm-package-registry", "mesh-broker", "mesh-config", "mesh-vault", "mesh-delivery-checker"} dropped := map[string]bool{"mesh-vault.accept": true, "mesh-vault.move-asks": true} + // Verbs a seat at the seat list's grain gained in the milestone, each optional until its holders serve it. + addedVerbs := map[string]bool{"node-engine.pull-waits": true} norm := func(v any) any { b, _ := json.Marshal(v) var out any @@ -81,6 +83,8 @@ func TestUseSeatsReplacesTheSetButNeverEmptiesIt(t *testing.T) { g.ShapeCode = append(g.ShapeCode, r.Kind) } } + g.Serves = slices.DeleteFunc(slices.Clone(g.Serves), func(v Verb) bool { return addedVerbs[want.Name+"."+v.Name] }) + g.Optional = slices.DeleteFunc(g.Optional, func(n string) bool { return addedVerbs[want.Name+"."+n] }) if slices.Contains(whole, want.Name) { want := &want byName := map[string]Verb{}