Skip to content

Commit

Permalink
test(affinity_assistant_test): Fixed tpl taskruntemplate was not set.…
Browse files Browse the repository at this point in the history
… Increases converage
  • Loading branch information
kristofferchr authored and tekton-robot committed Aug 22, 2024
1 parent 8444b2f commit 9277fb1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/reconciler/pipelinerun/affinity_assistant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,13 @@ func TestDefaultPodTemplatesArePropagatedToAffinityAssistant(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "pipelinerun-with-custom-podtemplate",
},
Spec: v1.PipelineRunSpec{
TaskRunTemplate: v1.PipelineTaskRunTemplate{
PodTemplate: &pod.PodTemplate{
HostNetwork: true,
},
},
},
}

defaultTpl := &pod.AffinityAssistantTemplate{
Expand Down

0 comments on commit 9277fb1

Please sign in to comment.