Skip to content

Commit

Permalink
Remove usage of deprecated Tekton field
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Nov 11, 2023
1 parent e451c5f commit 18b3ee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/stubs/tekton.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func TektonPipelineRunRunning(name string) tknv1beta1.PipelineRun {

func TektonPipelineRunTimedOut(name string) tknv1beta1.PipelineRun {
pipelineRun := TektonPipelineRun(name)
pipelineRun.Spec.Timeout = &metav1.Duration{Duration: time.Second}
pipelineRun.Spec.Timeouts = &tknv1beta1.TimeoutFields{
Pipeline: &metav1.Duration{Duration: time.Second},
}
pipelineRun.Status.PipelineRunStatusFields = tknv1beta1.PipelineRunStatusFields{
StartTime: &metav1.Time{
Time: time.Date(1982, time.January, 1, 0, 0, 0, 0, time.Local),
Expand Down

0 comments on commit 18b3ee7

Please sign in to comment.