mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 23:57:46 +00:00
fix: typo in indexed & non-indexed completion policies for failed pod replacement policy integration tests
This commit is contained in:
@@ -1719,7 +1719,7 @@ func TestJobPodReplacementPolicy(t *testing.T) {
|
|||||||
jobSpec: &batchv1.JobSpec{
|
jobSpec: &batchv1.JobSpec{
|
||||||
Parallelism: pointer.Int32Ptr(podCount),
|
Parallelism: pointer.Int32Ptr(podCount),
|
||||||
Completions: pointer.Int32Ptr(podCount),
|
Completions: pointer.Int32Ptr(podCount),
|
||||||
CompletionMode: &nonIndexedCompletion,
|
CompletionMode: &indexedCompletion,
|
||||||
PodReplacementPolicy: podReplacementPolicy(batchv1.Failed),
|
PodReplacementPolicy: podReplacementPolicy(batchv1.Failed),
|
||||||
},
|
},
|
||||||
wantTerminating: pointer.Int32(podCount),
|
wantTerminating: pointer.Int32(podCount),
|
||||||
@@ -1763,7 +1763,7 @@ func TestJobPodReplacementPolicy(t *testing.T) {
|
|||||||
jobSpec: &batchv1.JobSpec{
|
jobSpec: &batchv1.JobSpec{
|
||||||
Parallelism: pointer.Int32Ptr(podCount),
|
Parallelism: pointer.Int32Ptr(podCount),
|
||||||
Completions: pointer.Int32Ptr(podCount),
|
Completions: pointer.Int32Ptr(podCount),
|
||||||
CompletionMode: &nonIndexedCompletion,
|
CompletionMode: &indexedCompletion,
|
||||||
PodReplacementPolicy: podReplacementPolicy(batchv1.Failed),
|
PodReplacementPolicy: podReplacementPolicy(batchv1.Failed),
|
||||||
},
|
},
|
||||||
wantActive: int(podCount),
|
wantActive: int(podCount),
|
||||||
|
Reference in New Issue
Block a user