diff --git a/test/e2e/scheduling/predicates.go b/test/e2e/scheduling/predicates.go index e974e1c386f..548e316a59b 100644 --- a/test/e2e/scheduling/predicates.go +++ b/test/e2e/scheduling/predicates.go @@ -181,9 +181,9 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() { milliCpuPerPod = minPodCPURequest } framework.Logf("Using pod capacity: %vm", milliCpuPerPod) - for name, leftCapacity := range nodeToAllocatableMap { - framework.Logf("Node: %v has cpu capacity: %vm", name, leftCapacity) - podsNeededForSaturation += (int)(leftCapacity / milliCpuPerPod) + for name, leftAllocatable := range nodeToAllocatableMap { + framework.Logf("Node: %v has cpu allocatable: %vm", name, leftAllocatable) + podsNeededForSaturation += (int)(leftleftAllocatable / milliCpuPerPod) } By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster CPU and trying to start another one", podsNeededForSaturation))