From 30c586a647cbda0cb1e6a56ac1426775bc819aaf Mon Sep 17 00:00:00 2001 From: Lukas Grotz Date: Mon, 2 Jan 2023 20:01:26 +0100 Subject: [PATCH] Update test/e2e/autoscaling/cluster_size_autoscaling.go with suggestions Co-authored-by: Patrick Ohly --- 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 42a04421241..77547a714f6 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -364,7 +364,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { if status.target != target { klog.Warningf("Final number of nodes (%v) does not match initial scale-up target (%v).", status.target, target) } - gomega.Expect(status.timestamp.Add(freshStatusLimit)).ToNot(gomega.BeTemporally("<", time.Now())) + gomega.Expect(status.timestamp.Add(freshStatusLimit)).To(gomega.BeTemporally(">=", time.Now())) framework.ExpectEqual(status.status, caNoScaleUpStatus) framework.ExpectEqual(status.ready, status.target) nodes, err := e2enode.GetReadySchedulableNodes(ctx, f.ClientSet)