New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job: Use the fake clock in TestTrackJobStatusAndRemoveFinalizers #123826
Job: Use the fake clock in TestTrackJobStatusAndRemoveFinalizers #123826
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @alculquicondor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
@@ -1443,7 +1446,7 @@ func TestTrackJobStatusAndRemoveFinalizers(t *testing.T) { | |||
Succeeded: 1, | |||
Failed: 1, | |||
Conditions: []batch.JobCondition{*succeededCond, *completedCond}, | |||
CompletionTime: &succeededCond.LastTransitionTime, | |||
CompletionTime: ptr.To[metav1.Time](metav1.NewTime(now)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CompletionTime: ptr.To[metav1.Time](metav1.NewTime(now)), | |
CompletionTime: ptr.To(metav1.NewTime(now)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
6285871
to
f2508df
Compare
@alculquicondor I addressed your comment. |
/lgtm |
LGTM label has been added. Git tree hash: 3d9d090f186c11e5a0a782a2f1ef5277cb18c1da
|
/milestone v1.30 This qualifies for test freeze |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow-up PR of the #123412.
As I discussed in https://github.com/kubernetes/kubernetes/pull/123412/files#r1514820338 with @alculquicondor we should use the fake clock to avoid complexity in the
TestTrackJobStatusAndRemoveFinalizers
.Which issue(s) this PR fixes:
Part-of: kubernetes/enhancements#3998
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: