Skip to content

Commit

Permalink
Fix pkg/reconciler/taskrun_test.go TestReconcileOnCompletedTaskRun
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
  • Loading branch information
lumjjb authored and tekton-robot committed Mar 25, 2022
1 parent def2f4b commit 30f4051
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/reconciler/taskrun/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ func TestReconcileOnCompletedTaskRun(t *testing.T) {
Message: "Build succeeded",
}
taskRun := &v1beta1.TaskRun{
ObjectMeta: metav1.ObjectMeta{Name: "test-taskrun-run-success"},
ObjectMeta: objectMeta("test-taskrun-run-success", "foo"),
Spec: v1beta1.TaskRunSpec{
TaskRef: &v1beta1.TaskRef{
Name: simpleTask.Name,
Expand All @@ -1807,6 +1807,9 @@ func TestReconcileOnCompletedTaskRun(t *testing.T) {
*taskSt,
},
},
TaskRunStatusFields: v1beta1.TaskRunStatusFields{
StartTime: &metav1.Time{Time: now.Add(-15 * time.Second)},
},
},
}
d := test.Data{
Expand Down

0 comments on commit 30f4051

Please sign in to comment.