From 63b3bd3b4deab52215cab5e5c3950e27d10c4e70 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 16:54:44 +0100 Subject: [PATCH] refactor(node_taint_test): apply pod single creation convention for p13 --- .../removepodsviolatingnodetaints/node_taint_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go index f15e67acd..bbdd98c59 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go @@ -187,11 +187,12 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { // A pod with local storage. // A Mirror Pod. - p13 := buildTestPod("p13", nodeName5, nil) - test.SetNormalOwnerRef(p13) // node5 has PreferNoSchedule:testTaint1=test1, so the p13 has to have // PreferNoSchedule:testTaint0=test0 so the pod is not tolarated - p13 = addTolerationToPod(p13, "testTaint", "test", 0, v1.TaintEffectPreferNoSchedule) + p13 := buildTestPod("p13", nodeName5, func(pod *v1.Pod) { + test.SetNormalOwnerRef(pod) + addTolerationToPod(pod, "testTaint", "test", 0, v1.TaintEffectPreferNoSchedule) + }) p14 := buildTestPod("p14", nodeName7, nil) test.SetNormalOwnerRef(p14)