Use ExpectEqual test/e2e_node

This commit is contained in:
tanjunchen
2019-12-02 13:55:33 +08:00
parent f6337c7624
commit 561ee6ece9
8 changed files with 26 additions and 29 deletions

View File

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