Skip to content

Commit 93e4601

Browse files
authored
Merge pull request #129927 from mimowo/fix-job-int-test-1.31
Cherry-pick #129894 and #129913: Deflake job integration test 1.31
2 parents 8d8fe7b + 739d615 commit 93e4601

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/job/job_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ func TestSuccessPolicy(t *testing.T) {
654654
wantFailed: 0,
655655
wantSucceeded: 1,
656656
wantCompletedIndexes: "1",
657-
wantTerminating: ptr.To[int32](1),
657+
wantTerminating: ptr.To[int32](0),
658658
},
659659
},
660660
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
@@ -701,7 +701,7 @@ func TestSuccessPolicy(t *testing.T) {
701701
wantFailed: 0,
702702
wantSucceeded: 1,
703703
wantCompletedIndexes: "1",
704-
wantTerminating: ptr.To[int32](1),
704+
wantTerminating: ptr.To[int32](0),
705705
},
706706
},
707707
wantConditionTypes: []batchv1.JobConditionType{batchv1.JobSuccessCriteriaMet, batchv1.JobComplete},
@@ -1719,7 +1719,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
17191719
},
17201720
wantFailed: 5,
17211721
wantFailedIndexes: ptr.To(""),
1722-
wantTerminating: ptr.To[int32](2),
1722+
wantTerminating: ptr.To[int32](0),
17231723
},
17241724
},
17251725
wantJobConditionType: batchv1.JobFailed,
@@ -1811,7 +1811,7 @@ func TestBackoffLimitPerIndex(t *testing.T) {
18111811
wantActive: 0,
18121812
wantFailed: 3,
18131813
wantFailedIndexes: ptr.To("0,1"),
1814-
wantTerminating: ptr.To[int32](1),
1814+
wantTerminating: ptr.To[int32](0),
18151815
},
18161816
},
18171817
wantJobConditionType: batchv1.JobFailed,

0 commit comments

Comments
 (0)