From daaa5896a901da1a73ccd0f1a72bd7c81c330b36 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sun, 14 Dec 2025 14:26:23 +0100 Subject: [PATCH] refactor(TestFindDuplicatePods): inline p19 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 b8ec243e8..9e312434b 100644 --- a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go +++ b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go @@ -102,9 +102,6 @@ func TestFindDuplicatePods(t *testing.T) { // ### Pods Evictable Based On Node Fit ### // This pod sits on node6 and is used to take up CPU requests on the node - p19 := test.BuildTestPod("CPU-eater", 150, 150, node6.Name, func(pod *v1.Pod) { - pod.Namespace = "test" - }) // Dummy pod for node6 used to do the opposite of p19 p20 := test.BuildTestPod("CPU-saver", 100, 150, node6.Name, func(pod *v1.Pod) { @@ -330,7 +327,9 @@ func TestFindDuplicatePods(t *testing.T) { buildTestPodWithRSOwnerRefWithNamespaceForNode1("p1", "dev", nil), buildTestPodWithRSOwnerRefWithNamespaceForNode1("p2", "dev", nil), buildTestPodWithRSOwnerRefWithNamespaceForNode1("p3", "dev", nil), - p19, + test.BuildTestPod("CPU-eater", 150, 150, node6.Name, func(pod *v1.Pod) { + pod.Namespace = "test" + }), }, nodes: []*v1.Node{node1, node6}, expectedEvictedPodCount: 0,