SDK-8: the seat set's test knows node-engine's new pull-waits

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 12:19:52 +01:00
parent 640e68f86e
commit 5e440129db
+4
View File
@@ -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{}