Commit 2c486074 authored by qingsenLi's avatar qingsenLi

fix a mistake-2

parent 997d5182
...@@ -277,7 +277,7 @@ func getNode(c *clientset.Clientset) (*v1.Node, error) { ...@@ -277,7 +277,7 @@ func getNode(c *clientset.Clientset) (*v1.Node, error) {
if nodes == nil { if nodes == nil {
return nil, fmt.Errorf("the node list is nil.") return nil, fmt.Errorf("the node list is nil.")
} }
Expect(len(nodes.Items) > 1).NotTo(BeTrue(), "should not be more than 1 nodes.") Expect(len(nodes.Items) > 1).NotTo(BeTrue(), "the number of nodes is more than 1.")
if len(nodes.Items) == 0 { if len(nodes.Items) == 0 {
return nil, fmt.Errorf("empty node list: %+v", nodes) return nil, fmt.Errorf("empty node list: %+v", nodes)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment