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 node3

This commit is contained in:
Jan Chaloupka
2025-12-15 17:23:42 +01:00
parent 0f7ff8a2b7
commit d81580c93e

View File

@@ -114,7 +114,6 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai
}
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
node3 := buildTestNode(nodeName3, withDatacenterEastLabel)
node4 := buildTestNode(nodeName4, withUnschedulable)
node5 := buildTestNode(nodeName5, withPreferNoScheduleTestTaint1)
@@ -325,7 +324,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
pods: []*v1.Pod{p1, p3, p12},
nodes: []*v1.Node{
buildTestNode(nodeName1, withTestTaint1),
node3,
buildTestNode(nodeName3, withDatacenterEastLabel),
},
expectedEvictedPodCount: 0, // p2 gets evicted
nodeFit: true,