From e8cf01591ea05a5a261e5a02cfd0898b89601c90 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sun, 14 Dec 2025 14:24:36 +0100 Subject: [PATCH] refactor(TestFindDuplicatePods): inline p16 pod creation --- .../plugins/removeduplicates/removeduplicates_test.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go index 2a1d08afc..83951568c 100644 --- a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go +++ b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go @@ -100,11 +100,6 @@ func TestFindDuplicatePods(t *testing.T) { // Same owners, but different images // Multiple containers // ### Pods Evictable Based On Node Fit ### - p16 := buildTestPodWithRSOwnerRefWithNamespaceForNode1("NOT1", "node-fit", func(pod *v1.Pod) { - pod.Spec.NodeSelector = map[string]string{ - "datacenter": "west", - } - }) p17 := buildTestPodWithRSOwnerRefWithNamespaceForNode1("NOT2", "node-fit", func(pod *v1.Pod) { pod.Spec.NodeSelector = map[string]string{ "datacenter": "west", @@ -308,7 +303,11 @@ func TestFindDuplicatePods(t *testing.T) { "datacenter": "west", } }), - p16, + buildTestPodWithRSOwnerRefWithNamespaceForNode1("NOT1", "node-fit", func(pod *v1.Pod) { + pod.Spec.NodeSelector = map[string]string{ + "datacenter": "west", + } + }), p17, }, nodes: []*v1.Node{node1, node4},