From 6c41ebd8f316ceaa5de53e6d31828a060eabf280 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 16:26:08 +0100 Subject: [PATCH] refactor(node_taint_test): apply node single creation convention for node1 --- .../plugins/removepodsviolatingnodetaints/node_taint_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go index 7d9920874..0d995ba17 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go @@ -88,8 +88,9 @@ func addTolerationToPod(pod *v1.Pod, key, value string, index int, effect v1.Tai } func TestDeletePodsViolatingNodeTaints(t *testing.T) { - node1 := buildTestNode(nodeName1, nil) - node1 = addTaintsToNode(node1, "testTaint", "test", []int{1}) + node1 := buildTestNode(nodeName1, func(node *v1.Node) { + addTaintsToNode(node, "testTaint", "test", []int{1}) + }) node2 := buildTestNode(nodeName2, nil) node2 = addTaintsToNode(node2, "testingTaint", "testing", []int{1})