T2 amendment: a call after the stop began is answered nothing, never refused
A refusal would end the caller's kept call; left unanswered, the kept call paces and meets the new runner. The ask made once the drain began ends Unanswered, so the bus sends its caller nothing. Builds: design 47 H2 §813 (12), H-A-369
This commit is contained in:
@@ -180,7 +180,7 @@ func TestTheToolRunnerStartedByItsEntryServesABundleOverTheSeatListItReads(t *te
|
||||
mu.Unlock()
|
||||
|
||||
// at its stop the runner drains (design 47 H2 §813 (12), H-A-353; the bound 2 s here for the setting's 30 s): a call of 1 s in
|
||||
// flight is answered, one of 6 s is cut at the bound, said, and its caller answered nothing; a call after the stop is refused
|
||||
// flight is answered, one of 6 s is cut at the bound, said, and its caller answered nothing; a call after the stop is answered nothing
|
||||
type answer struct {
|
||||
got string
|
||||
err error
|
||||
@@ -202,10 +202,12 @@ func TestTheToolRunnerStartedByItsEntryServesABundleOverTheSeatListItReads(t *te
|
||||
return nil
|
||||
})
|
||||
stop()
|
||||
// a call after the stop began is answered nothing, never refused, so the caller's kept call paces and meets the new runner
|
||||
// (H-A-369): until the drain began it is still answered
|
||||
mt.Until(t, func() error {
|
||||
_, err := ask("ledger.who")
|
||||
if err == nil || !strings.Contains(err.Error(), "takes no new call") {
|
||||
return fmt.Errorf("a call after the stop was answered %v, want it refused", err)
|
||||
answered, err := asker.AskWithin("ledger.who", map[string]any{}, "", 500*time.Millisecond)
|
||||
if err == nil || err.Error() != "timeout" {
|
||||
return fmt.Errorf("a call after the stop was answered %s, %v; want no answer", answered.Result, err)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user