H-A-146: the bound before a failed resolution is asked again is the setting resolve-again-minutes
A failed resolution of a want's version, or one forgotten after a failed fetch, stood a minute written into the code; by principle 11 a bound is a setting with a default. The manifest declares resolve-again-minutes (1 to 60, default 1) and its file, the engine reads it at its start and hands it to the composer's Env. Builds: design 47 H H-A-146 (hq 26f5505e), principle 11
This commit is contained in:
@@ -92,6 +92,9 @@ func TestTheManifestConsumesTheBackupEvent(t *testing.T) {
|
||||
if !strings.Contains(string(raw), `"content": "${config:entry-asks}\n"`) || m.Config["entry-asks"].Default != float64(5) {
|
||||
t.Errorf("module.json declares no file with the content ${config:entry-asks} or its default is not 5 (design 47 H, H-A-60)")
|
||||
}
|
||||
if !strings.Contains(string(raw), `"content": "${config:resolve-again-minutes}\n"`) || m.Config["resolve-again-minutes"].Default != float64(1) {
|
||||
t.Errorf("module.json declares no file with the content ${config:resolve-again-minutes} or its default is not 1 (design 47 H, H-A-146)")
|
||||
}
|
||||
if m.Config["recovery-wait-minutes"].Default != float64(90) {
|
||||
t.Errorf("config recovery-wait-minutes is %+v, want default 90", m.Config["recovery-wait-minutes"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user