From e46b5db6d5a06a9817ac016c27ff841228742b6d Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sun, 14 Dec 2025 12:37:58 +0100 Subject: [PATCH] refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits --- .../plugins/removeduplicates/removeduplicates_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go index 98b471685..787a4b566 100644 --- a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go +++ b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go @@ -174,8 +174,9 @@ func TestFindDuplicatePods(t *testing.T) { }) // Dummy pod for node6 used to do the opposite of p19 - p20 := test.BuildTestPod("CPU-saver", 100, 150, node6.Name, nil) - p20.Namespace = "test" + p20 := test.BuildTestPod("CPU-saver", 100, 150, node6.Name, func(pod *v1.Pod) { + pod.Namespace = "test" + }) // ### Evictable Pods ###