nats: the whole test waits for the first fill pass, not a first view's answer (H-A-268)

The keeper never marks a first view listing no module as answered
(A-367), so the subtest waited for what cannot come and hid every later
subtest. It waits for the first fill pass and takes it as the first.

Builds: design 47 H H-A-268
This commit is contained in:
2026-11-21 15:37:46 +01:00
parent 83802dc4a6
commit 820840076f
@@ -316,7 +316,9 @@ func TestTheBusModuleRunsWhole(t *testing.T) {
_ = Keep(kctx, deaf, func(context.Context, func(string, []byte) error) error { return errors.New("no consumer yet") }, nil, nil, t.Logf)
close(done)
}()
eventually(t, "the first view answered", func() bool { return !deaf.Status().FirstView.Answered.IsZero() })
// A first view listing no module is none yet and never marked answered (A-367): the first fill pass is waited
// for instead, then taken as the first (design 47 H, H-A-268).
eventually(t, "the first fill pass", func() bool { return !deaf.Status().Pass.IsZero() })
first := deaf.Status().Pass
eventually(t, "a fill pass while the consumer is bound again", func() bool { return deaf.Status().Pass.After(first) })
stopDeaf()