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)
This commit is contained in:
2026-11-22 00:18:42 +01:00
parent 0e03495757
commit 4f265fe884
+4 -2
View File
@@ -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
}