Skip to content

Commit

Permalink
fix: Cron Scaler e2e test works during min 59 (#3590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Turrado Ferrero authored Aug 24, 2022
1 parent 7276794 commit 40da2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scalers/cron/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40da2e2

Please sign in to comment.