Skip to content

Commit

Permalink
Update pipelinerun_test.go to take new TaskRun into account 👼
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and knative-prow-robot committed Nov 22, 2018
1 parent aab0a14 commit c42258c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/reconciler/v1alpha1/pipelinerun/pipelinerun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,20 +450,20 @@ func TestUpdateTaskRunsState(t *testing.T) {
Conditions: []duckv1alpha1.Condition{{
Type: duckv1alpha1.ConditionSucceeded,
}},
Steps: []v1alpha1.StepRun{{
Name: "taskrun-step1-status",
LogsURL: "http://example.logs",
ExitCode: 0,
Steps: []v1alpha1.StepState{{
ContainerState: corev1.ContainerState{
Terminated: &corev1.ContainerStateTerminated{ExitCode: 0},
},
}},
},
}

expectedTaskRunsStatus := make(map[string]v1alpha1.TaskRunStatus)
expectedTaskRunsStatus["test-pipeline-run-success-unit-test-1"] = v1alpha1.TaskRunStatus{
Steps: []v1alpha1.StepRun{{
Name: "taskrun-step1-status",
LogsURL: "http://example.logs",
ExitCode: 0,
Steps: []v1alpha1.StepState{{
ContainerState: corev1.ContainerState{
Terminated: &corev1.ContainerStateTerminated{ExitCode: 0},
},
}},
Conditions: []duckv1alpha1.Condition{{
Type: duckv1alpha1.ConditionSucceeded,
Expand Down

0 comments on commit c42258c

Please sign in to comment.