mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 21:31:18 +01:00
refactor(node_taint_test): apply node single creation convention for node5
This commit is contained in:
@@ -106,10 +106,11 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
node5 := buildTestNode(nodeName5, nil)
|
||||
node5.Spec.Taints = []v1.Taint{
|
||||
createPreferNoScheduleTaint("testTaint", "test", 1),
|
||||
}
|
||||
node5 := buildTestNode(nodeName5, func(node *v1.Node) {
|
||||
node.Spec.Taints = []v1.Taint{
|
||||
createPreferNoScheduleTaint("testTaint", "test", 1),
|
||||
}
|
||||
})
|
||||
|
||||
node6 := test.BuildTestNode(nodeName6, 1, 1, 1, nil)
|
||||
node6.Spec.Taints = []v1.Taint{
|
||||
|
||||
Reference in New Issue
Block a user