B4: gofmt

This commit is contained in:
2026-11-25 17:12:19 +01:00
parent 354e943d24
commit 13c9fb430e
@@ -528,7 +528,9 @@ func TestANumberARegistryHoldsIsNeverReserved(t *testing.T) {
t.Fatal(err)
}
c.held.Ref, c.held.Version, c.held.Seat = "m:a", first.Version, SeatArtifacts
rr.HeldRecords = func(context.Context, string, string, []string) ([]HeldArtifact, error) { return []HeldArtifact{c.held}, nil }
rr.HeldRecords = func(context.Context, string, string, []string) ([]HeldArtifact, error) {
return []HeldArtifact{c.held}, nil
}
rr.MovedFrom = func(_ context.Context, _ ReservedVersion, e []HeldArtifact) { told = e }
again, err := rr.Reserve(ctx, "m", "0.3", []string{"m:a"}, Source{Fingerprint: "fp9", Rebuild: true})
if err != nil || (again.Version != first.Version) != c.wantMoved || (again.Withdrawn[first.Version] == "fp9") != c.wantMoved || (len(told) == 1) != c.wantMoved {