Merge pull request #98691 from pacoxu/cronjob-ut

run cronjob every 1minute in UT
This commit is contained in:
Kubernetes Prow Robot 2021-02-05 11:34:52 -08:00 committed by GitHub
commit 036cab71a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,9 +367,9 @@ func TestController2_updateCronJob(t *testing.T) {
},
args: args{
oldJobSchedule: "30 * * * *",
newJobSchedule: "1 * * * *",
newJobSchedule: "*/1 * * * *",
},
deltaTimeForQueue: 61*time.Second + nextScheduleDelta,
deltaTimeForQueue: 1*time.Second + nextScheduleDelta,
roundOffTimeDuration: 750 * time.Millisecond,
},
// TODO: Add more test cases for updating scheduling.