Skip to content

Commit 39d4a9f

Browse files
committed
wip
1 parent 65bbb1e commit 39d4a9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/reconciler/pipelinerun/pipelinerun_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5162,7 +5162,7 @@ status:
51625162
expectedPr = expectedPrMinimalStatus
51635163
}
51645164

5165-
if d := cmp.Diff(expectedPr, reconciledRun, ignoreResourceVersion, ignoreLastTransitionTime, ignoreCompletionTime, ignoreStartTime); d != "" {
5165+
if d := cmp.Diff(expectedPr, reconciledRun, ignoreResourceVersion, ignoreLastTransitionTime, ignoreCompletionTime, ignoreStartTime, cmpopts.EquateEmpty()); d != "" {
51665166
t.Errorf("expected to see pipeline run results created. Diff %s", diff.PrintWantGot(d))
51675167
}
51685168
}
@@ -5484,7 +5484,7 @@ status:
54845484
expectedPr = expectedPrMinimalStatus
54855485
}
54865486

5487-
if d := cmp.Diff(expectedPr, reconciledRun, ignoreResourceVersion, ignoreLastTransitionTime, ignoreCompletionTime, ignoreStartTime); d != "" {
5487+
if d := cmp.Diff(expectedPr, reconciledRun, ignoreResourceVersion, ignoreLastTransitionTime, ignoreCompletionTime, ignoreStartTime, cmpopts.EquateEmpty()); d != "" {
54885488
t.Errorf("expected to see pipeline run results created. Diff %s", diff.PrintWantGot(d))
54895489
}
54905490
}
@@ -8952,7 +8952,7 @@ spec:
89528952
if err != nil {
89538953
t.Fatalf("Got an error getting reconciled run out of fake client: %s", err)
89548954
}
8955-
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime); d != "" {
8955+
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime, cmpopts.EquateEmpty()); d != "" {
89568956
t.Errorf("expected PipelineRun was not created. Diff %s", diff.PrintWantGot(d))
89578957
}
89588958
})
@@ -9560,7 +9560,7 @@ spec:
95609560
if err != nil {
95619561
t.Fatalf("Got an error getting reconciled run out of fake client: %s", err)
95629562
}
9563-
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime); d != "" {
9563+
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime, cmpopts.EquateEmpty()); d != "" {
95649564
t.Errorf("expected PipelineRun was not created. Diff %s", diff.PrintWantGot(d))
95659565
}
95669566
})
@@ -10020,7 +10020,7 @@ status:
1002010020
if err != nil {
1002110021
t.Fatalf("Got an error getting reconciled run out of fake client: %s", err)
1002210022
}
10023-
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, cmpopts.SortSlices(lessChildReferences)); d != "" {
10023+
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, cmpopts.SortSlices(lessChildReferences), cmpopts.EquateEmpty()); d != "" {
1002410024
t.Errorf("expected PipelineRun was not created. Diff %s", diff.PrintWantGot(d))
1002510025
}
1002610026
})
@@ -10554,7 +10554,7 @@ spec:
1055410554
if err != nil {
1055510555
t.Fatalf("Got an error getting reconciled run out of fake client: %s", err)
1055610556
}
10557-
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime); d != "" {
10557+
if d := cmp.Diff(tt.expectedPipelineRun, pipelineRun, ignoreResourceVersion, ignoreTypeMeta, ignoreLastTransitionTime, ignoreStartTime, ignoreFinallyStartTime, cmpopts.EquateEmpty()); d != "" {
1055810558
t.Errorf("expected PipelineRun was not created. Diff %s", diff.PrintWantGot(d))
1055910559
}
1056010560
})

0 commit comments

Comments
 (0)