mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
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:
parent
5e63432f79
commit
cd9fd12960
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user