From b21fb4a655625e8136ac2d1317e126863be04ebe Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sun, 14 Dec 2025 12:37:22 +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 237a9bfa1..98b471685 100644 --- a/pkg/framework/plugins/removeduplicates/removeduplicates_test.go +++ b/pkg/framework/plugins/removeduplicates/removeduplicates_test.go @@ -169,8 +169,9 @@ func TestFindDuplicatePods(t *testing.T) { }) // 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, nil) - p19.Namespace = "test" + 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, nil)