diff --git a/go/buildstep/askrun_test.go b/go/buildstep/askrun_test.go index 047ef1d..49ea614 100644 --- a/go/buildstep/askrun_test.go +++ b/go/buildstep/askrun_test.go @@ -143,11 +143,13 @@ test {"level":"unit","packages":["x/pkg/a"],"workspace":"/w"}` t.Fatalf("the unit level %+v", u) } - // ADR 0567 §12: a check's node names reach the test tool, for the names check. + // ADR 0567 §12: a check's node names reach the digest and test tools, for the names check (a kept verdict misses when + // they change). r.calls = nil if _, err := RunAsk(context.Background(), r.steps(), ask(delivery.CheckJob{Levels: []string{delivery.LevelUnit}, NodeNames: []string{"anchor"}, - Fetch: map[string]any{"repository": "novox/x", "commit": runCommit}})); err != nil || !strings.Contains(strings.Join(r.calls, "\n"), `"node-names":["anchor"]`) { - t.Fatalf("the node names are not handed to the test tool: %v, %v", r.calls, err) + Fetch: map[string]any{"repository": "novox/x", "commit": runCommit}})); err != nil || !strings.Contains(strings.Join(r.calls, "\n"), `digest {"level":"unit","node-names":["anchor"]`) || + !strings.Contains(strings.Join(r.calls, "\n"), `test {"level":"unit","node-names":["anchor"]`) { + t.Fatalf("the node names are not handed to the digest and test tools: %v, %v", r.calls, err) } // Issue 890/AC2: a package declaring node-build-node is not tested on a node that lacks it but named unmet, and is