diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index 6cfbc46cfe6..1fc459a4f09 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -124,7 +124,7 @@ var _ = SIGDescribe("Cluster size autoscaling", framework.WithSlow(), 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)