@@ -307,7 +307,7 @@ func getNode(c *clientset.Clientset) (*v1.Node, error) {
|
||||
if nodes == nil {
|
||||
return nil, fmt.Errorf("the node list is nil")
|
||||
}
|
||||
framework.ExpectNotEqual(len(nodes.Items) > 1, true, "the number of nodes is more than 1.")
|
||||
gomega.Expect(len(nodes.Items) > 1).NotTo(gomega.BeTrue(), "the number of nodes is more than 1.")
|
||||
if len(nodes.Items) == 0 {
|
||||
return nil, fmt.Errorf("empty node list: %+v", nodes)
|
||||
}
|
||||
|
Reference in New Issue
Block a user