selfcompose: ask a trunk build the catalog gave none of again on a backoff or a catalog-revision, not at every pass
A trunk build answered none waits laterAgain's step for its module (5 s growing to 5 min); the seat mesh-catalog's event catalog-revision, heard through Env.Hear, ends the wait of every module at once; an answer starts the steps again. A pass is woken at the step's end. Builds: design 47 G-22 A-487a, A-461e, G-12 line 317
This commit is contained in:
@@ -249,6 +249,9 @@ func TestTheNodeComposesItsWantsFromTheBus(t *testing.T) {
|
||||
}
|
||||
secretChanged := make(chan []byte, 1)
|
||||
env.Hear = func(subject string) (<-chan []byte, func(), error) {
|
||||
if subject == CatalogRevisionEvents {
|
||||
return make(chan []byte), func() {}, nil
|
||||
}
|
||||
if subject != VaultSecretChanged {
|
||||
t.Errorf("heard %s", subject)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user