Update test/e2e/autoscaling/cluster_size_autoscaling.go with suggestions

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
This commit is contained in:
Lukas Grotz 2023-01-02 20:01:26 +01:00 committed by GitHub
parent 50ed17a66e
commit 30c586a647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)