mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 06:29:29 +01:00
refactor(node_taint_test): apply node single creation convention for node1
This commit is contained in:
@@ -88,8 +88,9 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
func TestDeletePodsViolatingNodeTaints(t *testing.T) {
|
||||||
node1 := buildTestNode(nodeName1, nil)
|
node1 := buildTestNode(nodeName1, func(node *v1.Node) {
|
||||||
node1 = addTaintsToNode(node1, "testTaint", "test", []int{1})
|
addTaintsToNode(node, "testTaint", "test", []int{1})
|
||||||
|
})
|
||||||
node2 := buildTestNode(nodeName2, nil)
|
node2 := buildTestNode(nodeName2, nil)
|
||||||
node2 = addTaintsToNode(node2, "testingTaint", "testing", []int{1})
|
node2 = addTaintsToNode(node2, "testingTaint", "testing", []int{1})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user