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
commit ef45c99506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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