build modules: G9 again-delays-default, 15s,90s in mesh-build-go, mesh-build-image and mesh-build-node

The default spans the tool runner's restart (three runs, 105 s); each module's
test reads the declared default and requires 15 s after the first run and 90 s
after the second.

Builds: design 47 H2 H-A-603, H-A-570 (5)
This commit is contained in:
2026-11-25 17:35:57 +01:00
parent 64f68ec3f0
commit 1841bc959e
5 changed files with 10 additions and 10 deletions
@@ -32,7 +32,7 @@ func TestTheStartSweepEndsWhatAPreviousProcessLeft(t *testing.T) {
// did not answer as a transport fault, and a failure of the source (a RUN line that fails) as none.
func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) {
// A step whose fetch or publish met its holder away is given again after the module's again-delays, 15 s after its
// first run and 60 s after its second by default (design 47 H2 §799; H-A-390).
// first run and 90 s after its second by default, a span past the tool runner's restart (design 47 H2 §799; H-A-390, H-A-603).
t.Run("again-delays is declared and read", func(t *testing.T) {
raw, err := os.ReadFile(filepath.Join("..", "..", "module.json"))
if err != nil {
@@ -51,7 +51,7 @@ func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) {
decl, ok := m.Config[steprun.AgainDelaysSetting]
_ = json.Unmarshal(decl, &c)
delay, err := steprun.AgainDelays(c.Default)
if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 60*time.Second {
if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 90*time.Second {
t.Fatalf("again-delays declared %v as %+v: %v", ok, c, err)
}
})