From b8b0fa0565af46ebab7d9d6fc8358c34c16fadea Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sun, 14 Dec 2025 14:27:05 +0100 Subject: [PATCH] refactor(TestFindDuplicatePods): inline p20 pod creation --- .../plugins/removeduplicates/removeduplicates_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go index 9e312434b..a145548c0 100644 --- a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go +++ b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go @@ -104,9 +104,6 @@ func TestFindDuplicatePods(t *testing.T) { // This pod sits on node6 and is used to take up CPU requests on the node // Dummy pod for node6 used to do the opposite of p19 - p20 := test.BuildTestPod("CPU-saver", 100, 150, node6.Name, func(pod *v1.Pod) { - pod.Namespace = "test" - }) // ### Evictable Pods ### @@ -341,7 +338,9 @@ func TestFindDuplicatePods(t *testing.T) { buildTestPodWithRSOwnerRefWithNamespaceForNode1("p1", "dev", nil), buildTestPodWithRSOwnerRefWithNamespaceForNode1("p2", "dev", nil), buildTestPodWithRSOwnerRefWithNamespaceForNode1("p3", "dev", nil), - p20, + test.BuildTestPod("CPU-saver", 100, 150, node6.Name, func(pod *v1.Pod) { + pod.Namespace = "test" + }), }, nodes: []*v1.Node{node1, node6}, expectedEvictedPodCount: 1,