From 50b6e178c199d9141cf8346c846e0c86bf6a448d Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 18:09:22 +0100 Subject: [PATCH] refactor(node_taint_test): inline p11 --- .../plugins/removepodsviolatingnodetaints/node_taint_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go index b8505610d..d86484962 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go @@ -154,7 +154,6 @@ func withKubeSystemCriticalPod(pod *v1.Pod) { } func TestDeletePodsViolatingNodeTaints(t *testing.T) { - p11 := buildTestPodWithNormalOwnerRef("p11", nodeName2, nil) p12 := buildTestPodWithNormalOwnerRef("p11", nodeName2, func(pod *v1.Pod) { pod.Spec.NodeSelector = map[string]string{ datacenterLabel: datacenterWest, @@ -307,7 +306,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { buildTestPodWithNormalOwnerRef("p7", nodeName2, withKubeSystemCriticalPod), buildTestPod("p8", nodeName2, test.SetDSOwnerRef), buildTestPodWithNormalOwnerRef("p10", nodeName2, test.SetMirrorPodAnnotation), - p11, + buildTestPodWithNormalOwnerRef("p11", nodeName2, nil), }, nodes: []*v1.Node{ buildTestNode(nodeName2, withTestingTaint1),