mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
This commit is contained in:
@@ -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 ###
|
||||
|
||||
|
||||
Reference in New Issue
Block a user