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

refactor(TestRemovePodsHavingTooManyRestarts): inline node4

This commit is contained in:
Jan Chaloupka
2025-12-15 12:12:03 +01:00
parent 76895273f9
commit 75f655e271

View File

@@ -130,7 +130,6 @@ func initPods(apply func(pod *v1.Pod)) []*v1.Pod {
}
func TestRemovePodsHavingTooManyRestarts(t *testing.T) {
node4 := test.BuildTestNode(nodeName4, 200, 3000, 10, nil)
node5 := buildTestNode(nodeName5, nil)
createRemovePodsHavingTooManyRestartsAgrs := func(
@@ -290,7 +289,7 @@ func TestRemovePodsHavingTooManyRestarts(t *testing.T) {
pods: initPods(nil),
nodes: []*v1.Node{
buildTestNode(nodeName1, nil),
node4,
test.BuildTestNode(nodeName4, 200, 3000, 10, nil),
},
expectedEvictedPodCount: 0,
maxPodsToEvictPerNode: &uint3,