selfcompose: hear catalog-revision on the contract's subject, consume it in the manifest, one test

Subscribe to meshcatalog.SubjectCatalogRevisionAll (no string of its own); module.json consumes
mesh-catalog.catalog-revision so the node account is granted it; the two new tests are folded into
TestTrunkAskBackoffAndCatalogRevision and wait on channels, not time.

Builds: design 47 G-22 A-487a, A-487c, principle 3
This commit is contained in:
2026-11-19 01:18:38 +01:00
parent 2057c9d304
commit cb6cd9d996
5 changed files with 32 additions and 79 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ func TestTheNodeComposesItsWantsFromTheBus(t *testing.T) {
}
secretChanged := make(chan []byte, 1)
env.Hear = func(subject string) (<-chan []byte, func(), error) {
if subject == CatalogRevisionEvents {
if subject == meshcatalog.SubjectCatalogRevisionAll {
return make(chan []byte), func() {}, nil
}
if subject != VaultSecretChanged {