diff --git a/internal/link/handover_test.go b/internal/link/handover_test.go index 563baf0c..1d386ef5 100644 --- a/internal/link/handover_test.go +++ b/internal/link/handover_test.go @@ -483,6 +483,10 @@ func TestNatsAHandOverIsAskedOfTheNode(t *testing.T) { }) // 774 (ADR 0563 §1): the node seat is served on this node's subjects alone, naming its caller, and said to discovery. t.Run("the node seat is served on this node and discovered", func(t *testing.T) { + // Discovery names the engine's own module as §527 reads it, no fixed name (design 47 G §634, A-149). + own := NewOwnName() + own.Set("the-engine") + l.UseOwnName(own) l.ServeEngineSeat(func(c EngineCall) (any, error) { return c.Verb + " for " + c.Caller, nil }) reply, err := conn.Request("mesh.seat.node-engine.call.acts."+m.Node+".shanks~node-tools", []byte(`{}`), 5*time.Second) if err != nil || !strings.Contains(string(reply.Data), `"result":"acts for shanks.node-tools"`) { @@ -509,7 +513,7 @@ func TestNatsAHandOverIsAskedOfTheNode(t *testing.T) { announced := 0 for _, e := range said.Endpoints { md := e.Metadata - if md["kind"] != "seat" || md["scope"] != "node" || md["seat"] != EngineSeat || md["module"] != "mesh-host" || + if md["kind"] != "seat" || md["scope"] != "node" || md["seat"] != EngineSeat || md["module"] != "the-engine" || md["node"] != m.Node || md["description"] == "" || !strings.HasPrefix(md["schema"], "{") { t.Errorf("the endpoint on %s announces %v", e.Subject, md) }