Merge pull request #109025 from alculquicondor/smaller-job-integration-load

Reduce number of pods in Job+GC tests
This commit is contained in:
Kubernetes Prow Robot
2022-03-28 15:23:56 -07:00
committed by GitHub

View File

@@ -540,7 +540,7 @@ func TestOrphanPodsFinalizersClearedWithGC(t *testing.T) {
jobObj, err := createJobWithDefaults(ctx, clientSet, ns.Name, &batchv1.Job{
Spec: batchv1.JobSpec{
Parallelism: pointer.Int32Ptr(5),
Parallelism: pointer.Int32Ptr(2),
},
})
if err != nil {
@@ -550,7 +550,7 @@ func TestOrphanPodsFinalizersClearedWithGC(t *testing.T) {
t.Error("apiserver didn't add the tracking annotation")
}
validateJobPodsStatus(ctx, t, clientSet, jobObj, podsByStatus{
Active: 5,
Active: 2,
}, true)
// Delete Job. The GC should delete the pods in cascade.