Wait for all nodes to be schedulable in scalability tests

This commit is contained in:
Wojciech Tyczynski
2016-06-02 10:12:44 +02:00
parent 0274e72d39
commit 2a5883fc3a
3 changed files with 43 additions and 4 deletions

View File

@@ -158,6 +158,11 @@ var _ = framework.KubeDescribe("Density", func() {
c = f.Client
ns = f.Namespace.Name
// In large clusters we may get to this point but still have a bunch
// of nodes without Routes created. Since this would make a node
// unschedulable, we need to wait until all of them are schedulable.
framework.ExpectNoError(framework.WaitForAllNodesSchedulable(c))
nodes := framework.GetReadySchedulableNodesOrDie(c)
nodeCount = len(nodes.Items)
Expect(nodeCount).NotTo(BeZero())