From a0654df27077d31029ebc62078b81a29369c5866 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 13:54:07 +0100 Subject: [PATCH] refactor(TestPodAntiAffinity): inline p7 --- .../pod_antiaffinity_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go b/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go index 5b316e0bb..cde80394c 100644 --- a/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go +++ b/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go @@ -117,12 +117,6 @@ func buildTestPodNonEvictableForNode1() *v1.Pod { func TestPodAntiAffinity(t *testing.T) { - p7 := buildTestPodForNode1("p7", func(pod *v1.Pod) { - test.SetNormalOwnerRef(pod) - setLabelsFoo1Bar1(pod) - setPodAntiAffinityFooBar(pod) - test.SetPodPriority(pod, 0) - }) p8 := buildTestPodForNode1("p8", func(pod *v1.Pod) { pod.Spec.NodeSelector = map[string]string{ "datacenter": "west", @@ -225,7 +219,12 @@ func TestPodAntiAffinity(t *testing.T) { setPodAntiAffinityFoo1Bar1(pod) test.SetPodPriority(pod, 50) }), - p7}, + buildTestPodForNode1("p7", func(pod *v1.Pod) { + test.SetNormalOwnerRef(pod) + setLabelsFoo1Bar1(pod) + setPodAntiAffinityFooBar(pod) + test.SetPodPriority(pod, 0) + })}, nodes: []*v1.Node{ buildTestNode1(), },