Fix failing cluster-autoscaler e2e

pull/6/head
Maciej Pytel 2017-04-14 16:39:47 +02:00
parent b0a05b4597
commit 96cf6079d1
1 changed files with 4 additions and 4 deletions

View File

@ -351,12 +351,12 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() {
increasedSize += val + 2
}
setMigSizes(newSizes)
framework.ExpectNoError(WaitForClusterSizeFunc(f.ClientSet,
func(size int) bool { return size >= increasedSize }, scaleUpTimeout), unready)
framework.ExpectNoError(WaitForClusterSizeFuncWithUnready(f.ClientSet,
func(size int) bool { return size >= increasedSize }, scaleUpTimeout, unready))
By("Some node should be removed")
framework.ExpectNoError(WaitForClusterSizeFunc(f.ClientSet,
func(size int) bool { return size < increasedSize }, scaleDownTimeout), unready)
framework.ExpectNoError(WaitForClusterSizeFuncWithUnready(f.ClientSet,
func(size int) bool { return size < increasedSize }, scaleDownTimeout, unready))
}
It("should correctly scale down after a node is not needed [Feature:ClusterSizeAutoscalingScaleDown]",