Skip to content

Commit

Permalink
Merge pull request #629 from chenkaiyue/fix-node-affinity-test
Browse files Browse the repository at this point in the history
fix duplicate code in node_affinity_test.go
  • Loading branch information
k8s-ci-robot committed Sep 16, 2021
2 parents 3909f3a + d1d9ea0 commit 54d660e
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 54d660e

Please sign in to comment.