From ffb17aab7754b6e446e5ae9f485b3d8ea1103232 Mon Sep 17 00:00:00 2001 From: savitaashture Date: Tue, 27 Oct 2020 08:41:44 +0530 Subject: [PATCH] Update TestPipelineRunWithServiceAccountNameAndTaskRunSpec to use different podtemplate field --- test/serviceaccount_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/serviceaccount_test.go b/test/serviceaccount_test.go index bca6d4b5b86..0f3d0958b06 100644 --- a/test/serviceaccount_test.go +++ b/test/serviceaccount_test.go @@ -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) }