diff --git a/tests/scalers/cron/cron_test.go b/tests/scalers/cron/cron_test.go index df96f3a11d9..bca0938754c 100644 --- a/tests/scalers/cron/cron_test.go +++ b/tests/scalers/cron/cron_test.go @@ -25,8 +25,8 @@ var ( scaledObjectName = fmt.Sprintf("%s-so", testName) now = time.Now().Local() - start = (now.Minute() + 1) - end = (start + 1) + start = (now.Minute() + 1) % 60 + end = (start + 1) % 60 ) type templateData struct {