Skip to content

Commit

Permalink
Update pkg/artifacts/signable_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Billy Lynch <wlynch92@gmail.com>
  • Loading branch information
ywluogg and wlynch authored Oct 18, 2022
1 parent 5ae2ab9 commit 125d06a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/artifacts/signable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ func TestExtractStructuredTargetFromResults(t *testing.T) {
{URI: "gcr.io/foo/bar", Digest: digest3},
}
gotInputs := ExtractStructuredTargetFromResults(objects.NewTaskRunObject(tr), ArtifactsInputsResultName, logtesting.TestLogger(t))
gotInputsEqual := cmp.Equal(gotInputs, wantInputs, cmpopts.SortSlices(func(x, y *StructuredSignable) bool { return x.Digest < y.Digest }))
if !gotInputsEqual {
t.Errorf("Equal = %v\n reason: %v", gotInputsEqual, cmp.Diff(wantInputs, gotInputs, ignore...))
```suggestion
if diff := cmp.Diff(gotInputs, wantInputs, cmpopts.SortSlices(func(x, y *StructuredSignable) bool { return x.Digest < y.Digest })); diff != "" {
t.Errorf(...)
}

wantOutputs := []*StructuredSignable{
Expand Down

0 comments on commit 125d06a

Please sign in to comment.