From 6a26f76add3c0c626eb32a41c698fa3b6e55710a Mon Sep 17 00:00:00 2001 From: gpldirk <1315095845@qq.com> Date: Wed, 3 Jun 2020 16:03:10 +0000 Subject: [PATCH] fix minor comment in podtopologyspread scoring test --- .../framework/plugins/podtopologyspread/scoring_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go b/pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go index 75b03f70ebd..046b120b3bc 100644 --- a/pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go +++ b/pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go @@ -233,7 +233,6 @@ func TestPodTopologySpreadScore(t *testing.T) { // but node2 either i) doesn't have all required topologyKeys present, or ii) doesn't match // incoming pod's nodeSelector/nodeAffinity { - // if there is only one candidate node, it should be scored to 10 name: "one constraint on node, no existing pods", pod: st.MakePod().Name("p").Label("foo", ""). SpreadConstraint(1, v1.LabelHostname, v1.ScheduleAnyway, st.MakeLabelSelector().Exists("foo").Obj()). @@ -248,7 +247,7 @@ func TestPodTopologySpreadScore(t *testing.T) { }, }, { - // if there is only one candidate node, it should be scored to 10 + // if there is only one candidate node, it should be scored to 100 name: "one constraint on node, only one node is candidate", pod: st.MakePod().Name("p").Label("foo", ""). SpreadConstraint(1, v1.LabelHostname, v1.ScheduleAnyway, st.MakeLabelSelector().Exists("foo").Obj()).