Skip to content

Commit

Permalink
Fixing tests after knative/k8s updates
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jan 28, 2025
1 parent 2092e23 commit b51ea22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/status/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func TestGetTaskRunStatusForPipelineTask(t *testing.T) {
Name: "some-task-run",
PipelineTaskName: "some-task",
},
expectedStatus: &v1.TaskRunStatus{},
}, {
name: "success",
taskRun: parse.MustParseV1TaskRun(t, `
Expand Down Expand Up @@ -149,6 +150,7 @@ func TestGetRunStatusForPipelineTask(t *testing.T) {
Name: "some-run",
PipelineTaskName: "some-task",
},
expectedStatus: &v1beta1.CustomRunStatus{},
}, {
name: "success",
run: parse.MustParseCustomRun(t, `
Expand Down Expand Up @@ -300,7 +302,8 @@ pr-run-1:
value: rab
`),
expectedErr: nil,
}, {
},
{
name: "missing run",
originalPR: parse.MustParseV1PipelineRun(t, `
metadata:
Expand Down Expand Up @@ -337,6 +340,7 @@ pr-task-1:
expectedRunStatuses: mustParseRunStatusMap(t, `
pr-run-1:
pipelineTaskName: run-1
status: {}
`),
expectedErr: nil,
},
Expand Down

0 comments on commit b51ea22

Please sign in to comment.