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

refactor(node_taint_test): inline node6

This commit is contained in:
Jan Chaloupka
2025-12-15 17:25:27 +01:00
parent 6b6f7ba5c7
commit b96a41a745

View File

@@ -114,8 +114,6 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai
}
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
node6 := test.BuildTestNode(nodeName6, 1, 1, 1, withPreferNoScheduleTestTaint1)
node7 := buildTestNode(nodeName7, withBothTaints1)
p1 := buildTestPod("p1", nodeName1, func(pod *v1.Pod) {
@@ -384,7 +382,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
pods: []*v1.Pod{p2, p7, p9, p10},
nodes: []*v1.Node{
buildTestNode(nodeName1, withTestTaint1),
node6,
test.BuildTestNode(nodeName6, 1, 1, 1, withPreferNoScheduleTestTaint1),
},
evictSystemCriticalPods: true,
expectedEvictedPodCount: 0, // p2 and p7 can't be evicted