diff --git a/modules/mesh-mail/cmd/mesh-mail/manifest_test.go b/modules/mesh-mail/cmd/mesh-mail/manifest_test.go index 5f0a2c9a..3ccfc83c 100644 --- a/modules/mesh-mail/cmd/mesh-mail/manifest_test.go +++ b/modules/mesh-mail/cmd/mesh-mail/manifest_test.go @@ -18,7 +18,7 @@ type seat struct { Name string `json:"name"` Scope string `json:"scope"` Serves []string `json:"serves"` - Needs string `json:"needs"` + Needs []string `json:"needs"` } type manifest struct { @@ -115,7 +115,7 @@ func TestTheManifestSaysWhatTheCodeDoes(t *testing.T) { wantSeats := []seat{ {Name: "mail-store", Scope: "mesh", Serves: []string{"accounts", "search", "read", "send"}}, {Name: "mail-webclient", Scope: "mesh", Serves: []string{"open", "status"}}, - {Name: "mail-notifier", Scope: "node", Serves: []string{"status"}, Needs: "node-notifier"}, + {Name: "mail-notifier", Scope: "node", Serves: []string{"status"}, Needs: []string{"node-notifier"}}, } if !reflect.DeepEqual(m.Seats, wantSeats) { t.Fatalf("seats %+v, want %+v", m.Seats, wantSeats) diff --git a/modules/mesh-mail/module.json b/modules/mesh-mail/module.json index 3f3bb3f9..0cb00ea0 100644 --- a/modules/mesh-mail/module.json +++ b/modules/mesh-mail/module.json @@ -16,7 +16,7 @@ { "name": "mail-notifier", "scope": "node", - "needs": "node-notifier", + "needs": ["node-notifier"], "serves": ["status"] } ],