From e1e6f3419991d3b097b13ff9044e62e24ae01182 Mon Sep 17 00:00:00 2001 From: wlq1212 Date: Wed, 11 Oct 2023 19:00:57 +0800 Subject: [PATCH] test-autoscaling stop using deprecated framework.ExpectNotEqual --- test/e2e/autoscaling/cluster_size_autoscaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index 40941877689..9a9b7b230d0 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -121,7 +121,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { framework.ExpectNoError(err) nodeCount = len(nodes.Items) ginkgo.By(fmt.Sprintf("Initial number of schedulable nodes: %v", nodeCount)) - framework.ExpectNotEqual(nodeCount, 0) + gomega.Expect(nodes.Items).ToNot(gomega.BeEmpty()) mem := nodes.Items[0].Status.Allocatable[v1.ResourceMemory] memAllocatableMb = int((&mem).Value() / 1024 / 1024)