1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

refactor(node_taint_test): apply pod single creation convention for p14

This commit is contained in:
Jan Chaloupka
2025-12-15 16:55:02 +01:00
parent 63b3bd3b4d
commit a363da9806

View File

@@ -194,9 +194,10 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
addTolerationToPod(pod, "testTaint", "test", 0, v1.TaintEffectPreferNoSchedule)
})
p14 := buildTestPod("p14", nodeName7, nil)
test.SetNormalOwnerRef(p14)
p14 = addTolerationToPod(p14, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
p14 := buildTestPod("p14", nodeName7, func(pod *v1.Pod) {
test.SetNormalOwnerRef(pod)
addTolerationToPod(pod, "testTaint", "test", 1, v1.TaintEffectNoSchedule)
})
p15 := buildTestPod("p15", nodeName7, nil)
test.SetNormalOwnerRef(p15)