Make scheduler predicates test work with registered master

This commit is contained in:
gmarek
2016-03-01 15:19:17 +01:00
parent 4ef6f1c9dd
commit 496fc3c7ed
2 changed files with 31 additions and 10 deletions

View File

@@ -1950,6 +1950,7 @@ func startPods(c *client.Client, replicas int, namespace string, podNamePrefix s
_, err := c.Pods(namespace).Create(&pod)
expectNoError(err)
}
Logf("Waiting for running...")
if waitForRunning {
label := labels.SelectorFromSet(labels.Set(map[string]string{"startPodsID": startPodsID}))
err := waitForPodsWithLabelRunning(c, namespace, label)