Use no-priority best-effort pod as the preemptor in BenchmarkGetPodsToPreempt

This commit is contained in:
Ted Yu 2019-06-06 14:51:49 -07:00 committed by Ted Yu
parent d1e828f8df
commit 22556aed17

View File

@ -150,7 +150,7 @@ func BenchmarkGetPodsToPreempt(t *testing.B) {
inputPods = append(inputPods, allPods[tinyBurstable]) inputPods = append(inputPods, allPods[tinyBurstable])
} }
for n := 0; n < t.N; n++ { for n := 0; n < t.N; n++ {
getPodsToPreempt(nil, inputPods, admissionRequirementList([]*admissionRequirement{ getPodsToPreempt(allPods[bestEffort], inputPods, admissionRequirementList([]*admissionRequirement{
{ {
resourceName: v1.ResourceCPU, resourceName: v1.ResourceCPU,
quantity: parseCPUToInt64("110m"), quantity: parseCPUToInt64("110m"),