diff --git a/modules/mesh-delivery-view/manifest_test.go b/modules/mesh-delivery-view/manifest_test.go index 0be6426..aa54e36 100644 --- a/modules/mesh-delivery-view/manifest_test.go +++ b/modules/mesh-delivery-view/manifest_test.go @@ -99,8 +99,10 @@ func TestManifestIsTakenAndReadsOnly(t *testing.T) { // 1134/AC7 t.Errorf("tools = %v, want %v", m.Tools, want) } for _, a := range m.Build.Artifacts { - if a.Name == "tools" && !reflect.DeepEqual(a.Loads, []string{"mesh-delivery-view"}) { - t.Errorf("the tools artifact loads %v, want the view", a.Loads) + // A bundle compiled to a binary is one executable: what the runtime loads is that binary's name, or the controller's + // module check refuses the manifest (mesh-sdk catalogue build.go, ADR 0193). + if a.Name == "tools" && !reflect.DeepEqual(a.Loads, []string{a.Binary}) { + t.Errorf("the tools artifact loads %v, want its binary %q", a.Loads, a.Binary) } } } diff --git a/modules/mesh-delivery-view/module.json b/modules/mesh-delivery-view/module.json index a879da8..dc14e37 100644 --- a/modules/mesh-delivery-view/module.json +++ b/modules/mesh-delivery-view/module.json @@ -109,7 +109,7 @@ "from": "cmd/mesh-delivery-view-tools", "binary": "mesh-delivery-view-tools", "loads": [ - "mesh-delivery-view" + "mesh-delivery-view-tools" ] }, {