From 2bbec0cbc6678553081f991edb0b113fccaf73ea Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 16:55:21 +0100 Subject: [PATCH] refactor(node_taint_test): apply pod single creation convention for p15 --- .../removepodsviolatingnodetaints/node_taint_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go index e9ff2a7fd..1465c3595 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go @@ -199,10 +199,11 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule) }) - p15 := buildTestPod("p15", nodeName7, nil) - test.SetNormalOwnerRef(p15) - p15 = addTolerationToPod(p15, "testTaint", "test", 1, v1.TaintEffectNoSchedule) - p15 = addTolerationToPod(p15, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule) + p15 := buildTestPod("p15", nodeName7, func(pod *v1.Pod) { + test.SetNormalOwnerRef(pod) + addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule) + addTolerationToPod(pod, "testingTaint", "testing", 1, v1.TaintEffectNoSchedule) + }) var uint1, uint2 uint = 1, 2