B4: gofmt
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user