Merge pull request #129913 from mimowo/fix-remaining-integration-test

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

View File

@ -760,7 +760,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},
@ -1874,7 +1874,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
wantActive: 0, wantActive: 0,
wantFailed: 3, wantFailed: 3,
wantFailedIndexes: ptr.To("0,1"), wantFailedIndexes: ptr.To("0,1"),
wantTerminating: ptr.To[int32](1), wantTerminating: ptr.To[int32](0),
}, },
}, },
wantJobConditionType: batchv1.JobFailed, wantJobConditionType: batchv1.JobFailed,