From cd9fd129604e0161bdd564b1cf70b0a53b347c5d Mon Sep 17 00:00:00 2001 From: Aldo Culquicondor Date: Fri, 25 Mar 2022 13:01:50 -0400 Subject: [PATCH] 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 --- test/integration/job/job_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/job/job_test.go b/test/integration/job/job_test.go index e46e77e7b96..d285f1fa829 100644 --- a/test/integration/job/job_test.go +++ b/test/integration/job/job_test.go @@ -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.