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:
@@ -260,11 +260,13 @@ func Fixture(name string) string {
|
|||||||
return filepath.Join(filepath.Dir(here), "..", "..", "test", "fixtures", name)
|
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) {
|
func Until(t *testing.T, try func() error) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
var err error
|
var err error
|
||||||
for i := 0; i < 50; i++ {
|
for i := 0; i < 300; i++ {
|
||||||
if err = try(); err == nil {
|
if err = try(); err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user