DeamonSet test expect daemons on unschedulable Nodes

This commit is contained in:
gmarek 2016-02-29 12:17:18 +01:00
parent 38a30490ed
commit ba8a67e554

View File

@ -289,7 +289,8 @@ func checkDaemonPodOnNodes(f *Framework, selector map[string]string, nodeNames [
func checkRunningOnAllNodes(f *Framework, selector map[string]string) func() (bool, error) {
return func() (bool, error) {
nodeList := ListSchedulableNodesOrDie(f.Client)
nodeList, err := f.Client.Nodes().List(api.ListOptions{})
expectNoError(err)
nodeNames := make([]string, 0)
for _, node := range nodeList.Items {
nodeNames = append(nodeNames, node.Name)