From 4f265fe884d340e81d836e3d2b357ccc66411aa4 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 00:18:42 +0100 Subject: [PATCH] Tool runner tests: Until's bound is 30 s, for every package that waits on the bus The bus package waited within Until's fixed 5 s eighteen more times, the kind the per-node test's fix names; raised in its one place, Until in meshtest, which runtime, console, firstview and provide wait with too. The bound only ends a wait that never hears what it waits for. Builds: design 47 H H-A-363 (fix-a-bug-met-twice: a fixed bound a loaded machine overruns) --- node-tools/internal/meshtest/meshtest.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node-tools/internal/meshtest/meshtest.go b/node-tools/internal/meshtest/meshtest.go index 04fca72..e6bfed6 100644 --- a/node-tools/internal/meshtest/meshtest.go +++ b/node-tools/internal/meshtest/meshtest.go @@ -260,11 +260,13 @@ func Fixture(name string) string { return filepath.Join(filepath.Dir(here), "..", "..", "test", "fixtures", name) } -// Until retries while the bus answers "no responders" — something not yet served. +// Until retries while the bus answers "no responders" — something not yet served. Its bound only ends a wait that never +// hears what it waits for: 30 s, which a loaded machine stays within, where the earlier 5 s did not (design 47 H, +// H-A-363; fix-a-bug-met-twice: a fixed bound a loaded machine overruns, fixed for every package that waits here). func Until(t *testing.T, try func() error) { t.Helper() var err error - for i := 0; i < 50; i++ { + for i := 0; i < 300; i++ { if err = try(); err == nil { return }