From 9cbe992fc54e5587f9fcdf4e5b6cda6020f4a937 Mon Sep 17 00:00:00 2001 From: Binbin Zhao Date: Wed, 21 Jun 2017 00:55:06 -0700 Subject: [PATCH] Also rename leftCapacity to leftAllocatable --- test/e2e/scheduling/predicates.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))