Review round 3: gofmt on the builder's reserve test; the held-build integration step answers a kept revision as itself and waits for the rerun step-started

Builds: design 47 H2 H-A-619, H-A-583 (2)
This commit is contained in:
2026-11-25 20:19:55 +01:00
parent 08515e2706
commit ca220cb0da
2 changed files with 16 additions and 5 deletions
@@ -495,7 +495,7 @@ func TestABuiltReservationIsTakenInFromItsState(t *testing.T) {
if !slices.Equal(said, []string{"look:a@" + v.Version + " sha256:looka"}) || !slices.Equal(asked, []string{"look " + v.Version}) {
t.Errorf("at a look: said %v, publish items asked %v; want look:a's package-published said and its item asked", said, asked)
}
if ends := boundEnds("look"); !ends.Equal(v.BuiltAt.Add(defaultPublishAckMinutes*time.Minute)) {
if ends := boundEnds("look"); !ends.Equal(v.BuiltAt.Add(defaultPublishAckMinutes * time.Minute)) {
t.Errorf("the bound armed at a look ends %v, want %v: counted from the build's end", ends, v.BuiltAt.Add(defaultPublishAckMinutes*time.Minute))
}
if cur, _, _ := rv.r.Of(ctx, "look", v.Version); len(cur.Kept) != 0 || !cur.Published["look:a"] {