Merge pull request #129894 from mimowo/fix-flaky-job-controller-test

Fix the flaky Job integration tests
This commit is contained in:
Kubernetes Prow Robot 2025-01-30 08:49:30 -08:00 committed by GitHub
commit 59f3aa1e34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -713,7 +713,7 @@ func TestSuccessPolicy(t *testing.T) {
wantFailed: 0, wantFailed: 0,
wantSucceeded: 1, wantSucceeded: 1,
wantCompletedIndexes: "1", wantCompletedIndexes: "1",
wantTerminating: ptr.To[int32](1), wantTerminating: ptr.To[int32](0),
}, },
}, },
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete}, wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
@ -1782,7 +1782,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
}, },
wantFailed: 5, wantFailed: 5,
wantFailedIndexes: ptr.To(""), wantFailedIndexes: ptr.To(""),
wantTerminating: ptr.To[int32](2), wantTerminating: ptr.To[int32](0),
}, },
}, },
wantJobConditionType: batchv1.JobFailed, wantJobConditionType: batchv1.JobFailed,