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:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user