Skip to content

Commit

Permalink
Update TestPipelineRunWithServiceAccountNameAndTaskRunSpec to use dif…
Browse files Browse the repository at this point in the history
…ferent podtemplate field
  • Loading branch information
savitaashture committed Oct 27, 2020
1 parent 51a02c8 commit ffb17aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/serviceaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,13 @@ func TestPipelineRunWithServiceAccountNameAndTaskRunSpec(t *testing.T) {
TaskRunSpecs: []v1beta1.PipelineTaskRunSpec{{
PipelineTaskName: "task1",
TaskPodTemplate: &v1beta1.PodTemplate{
HostNetwork: true,
DNSPolicy: corev1.DNSClusterFirst,
},
}},
},
}

_, err := c.PipelineRunClient.Create(ctx, pipelineRun, metav1.CreateOptions{})
if err != nil {
if _, err := c.PipelineRunClient.Create(ctx, pipelineRun, metav1.CreateOptions{}); err != nil {
t.Fatalf("Failed to create PipelineRun `%s`: %s", pipelineRun.Name, err)
}

Expand Down

0 comments on commit ffb17aa

Please sign in to comment.