Skip to content

Commit

Permalink
fix duplicate code in node_affinity_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyuechen committed Sep 16, 2021
1 parent 3909f3a commit d1d9ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/descheduler/strategies/node_affinity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestRemovePodsViolatingNodeAffinity(t *testing.T) {
nodeWithoutLabels := test.BuildTestNode("nodeWithoutLabels", 2000, 3000, 10, nil)

unschedulableNodeWithLabels := test.BuildTestNode("unschedulableNodeWithLabels", 2000, 3000, 10, nil)
nodeWithLabels.Labels[nodeLabelKey] = nodeLabelValue
unschedulableNodeWithLabels.Labels[nodeLabelKey] = nodeLabelValue
unschedulableNodeWithLabels.Spec.Unschedulable = true

addPodsToNode := func(node *v1.Node) []v1.Pod {
Expand Down

0 comments on commit d1d9ea0

Please sign in to comment.