mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #107528 from sayaoailun/test-e2e-apps-cronjob
It is weird that lastScheduleTime is earlier than creationTime
This commit is contained in:
commit
e95eda5213
@ -191,7 +191,7 @@ var _ = SIGDescribe("CronJob", func() {
|
||||
cronJob := newTestCronJob("concurrent", "*/1 * * * ?", batchv1.ForbidConcurrent,
|
||||
sleepCommand, nil, nil)
|
||||
creationTime := time.Now().Add(-99 * 24 * time.Hour)
|
||||
lastScheduleTime := creationTime.Add(-1 * 24 * time.Hour)
|
||||
lastScheduleTime := creationTime.Add(1 * 24 * time.Hour)
|
||||
cronJob.CreationTimestamp = metav1.Time{Time: creationTime}
|
||||
cronJob.Status.LastScheduleTime = &metav1.Time{Time: lastScheduleTime}
|
||||
cronJob, err := createCronJob(f.ClientSet, f.Namespace.Name, cronJob)
|
||||
|
Loading…
Reference in New Issue
Block a user