From 03b5a9a967d6d971985cc6e7837abe02c2fdb461 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 13:53:43 +0100 Subject: [PATCH] refactor(TestPodAntiAffinity): inline p6 --- .../pod_antiaffinity_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go b/pkg/framework/plugins/removepodsviolatinginterpodantiaffinity/pod_antiaffinity_test.go index 64b3c4f5f..5b316e0bb 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) { - p6 := buildTestPodForNode1("p6", func(pod *v1.Pod) { - test.SetNormalOwnerRef(pod) - setLabelsFooBar(pod) - setPodAntiAffinityFoo1Bar1(pod) - test.SetPodPriority(pod, 50) - }) p7 := buildTestPodForNode1("p7", func(pod *v1.Pod) { test.SetNormalOwnerRef(pod) setLabelsFoo1Bar1(pod) @@ -225,7 +219,13 @@ func TestPodAntiAffinity(t *testing.T) { setPodAntiAffinityFoo1Bar1(pod) test.SetPodPriority(pod, 100) }), - p6, p7}, + buildTestPodForNode1("p6", func(pod *v1.Pod) { + test.SetNormalOwnerRef(pod) + setLabelsFooBar(pod) + setPodAntiAffinityFoo1Bar1(pod) + test.SetPodPriority(pod, 50) + }), + p7}, nodes: []*v1.Node{ buildTestNode1(), },