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