WIP: fix the flaky Job integration tests

This commit is contained in:
Michal Wozniak 2025-01-29 20:23:50 +01:00
parent 8d8fe7b1f0
commit ac7239cddf

View File

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