Reduce number of pods in Job+GC tests

To reduce the load of the integration tests. This change reduces the runtime of each test in half.

Change-Id: I71bcaadf3809643c63bb0f6b73c28778d37d8967
This commit is contained in:
Aldo Culquicondor 2022-03-25 13:01:50 -04:00
parent 5e63432f79
commit cd9fd12960

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.