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

refactor(node_taint_test): inline node4

This commit is contained in:
Jan Chaloupka
2025-12-15 17:24:17 +01:00
parent d81580c93e
commit a3ca65ea14

View File

@@ -114,8 +114,6 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai
} }
func TestDeletePodsViolatingNodeTaints(t *testing.T) { func TestDeletePodsViolatingNodeTaints(t *testing.T) {
node4 := buildTestNode(nodeName4, withUnschedulable)
node5 := buildTestNode(nodeName5, withPreferNoScheduleTestTaint1) node5 := buildTestNode(nodeName5, withPreferNoScheduleTestTaint1)
node6 := test.BuildTestNode(nodeName6, 1, 1, 1, withPreferNoScheduleTestTaint1) node6 := test.BuildTestNode(nodeName6, 1, 1, 1, withPreferNoScheduleTestTaint1)
@@ -334,7 +332,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
pods: []*v1.Pod{p1, p2, p3}, pods: []*v1.Pod{p1, p2, p3},
nodes: []*v1.Node{ nodes: []*v1.Node{
buildTestNode(nodeName1, withTestTaint1), buildTestNode(nodeName1, withTestTaint1),
node4, buildTestNode(nodeName4, withUnschedulable),
}, },
expectedEvictedPodCount: 0, // p2 gets evicted expectedEvictedPodCount: 0, // p2 gets evicted
nodeFit: true, nodeFit: true,