Skip to content

Commit

Permalink
fixes e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishin committed Jul 23, 2019
1 parent ec5f907 commit 5f5ce42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/taskrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func TestTaskRunFailure(t *testing.T) {
},
},
Name: "hello",
Container: "step-hello",
}, {
ContainerState: corev1.ContainerState{
Terminated: &corev1.ContainerStateTerminated{
Expand All @@ -87,6 +88,7 @@ func TestTaskRunFailure(t *testing.T) {
},
},
Name: "exit",
Container: "step-exit",
}, {
ContainerState: corev1.ContainerState{
Terminated: &corev1.ContainerStateTerminated{
Expand All @@ -95,6 +97,7 @@ func TestTaskRunFailure(t *testing.T) {
},
},
Name: "world",
Container: "step-world",
}}
ignoreFields := cmpopts.IgnoreFields(corev1.ContainerStateTerminated{}, "StartedAt", "FinishedAt", "ContainerID")
if d := cmp.Diff(taskrun.Status.Steps, expectedStepState, ignoreFields); d != "" {
Expand Down

0 comments on commit 5f5ce42

Please sign in to comment.