diff --git a/modules/mesh-delivery-pipeline/cmd/mesh-delivery-pipeline/testruns_integration_test.go b/modules/mesh-delivery-pipeline/cmd/mesh-delivery-pipeline/testruns_integration_test.go index 6ec49142..5e13693f 100644 --- a/modules/mesh-delivery-pipeline/cmd/mesh-delivery-pipeline/testruns_integration_test.go +++ b/modules/mesh-delivery-pipeline/cmd/mesh-delivery-pipeline/testruns_integration_test.go @@ -329,6 +329,20 @@ func TestTestRunsAreAskedOncePerLevelAndMoveEveryReader(t *testing.T) { if s := step(read(p3), "app:tools", "unit"); s.Outcome != seat.StepResultOutcomeWaitingForABuildNode || s.Ask != "" || s.Shared[0].Ask != unit.Ask { t.Fatalf("the tools' unit step = %+v; want it waiting for a build node, reading the program's run", s) } + // Its wait has no bound (§647 as A-466y amends it): the state bounds holds no key for a queued ask, only drops' keys. + boundsKV, err := js.KeyValue(ctx, module+"_bounds") + if err != nil { + t.Fatal(err) + } + if ks, err := boundsKV.Keys(ctx); err != nil && err != jetstream.ErrNoKeysFound { + t.Fatal(err) + } else { + for _, k := range ks { + if !strings.HasPrefix(k, pipeline.DropBoundPrefix) { + t.Errorf("the state bounds holds %s after the asks were put; want no bound of a queued ask", k) + } + } + } // A runner restarted during a run takes it up again by its ask (§725): the run's end, heard after the restart, ends both. taken(unit.Ask)