Skip to content

Commit 594cbdf

Browse files
authored
Merge pull request kubernetes#89508 from KobayashiD27/test-coverage-up
Add test case to improve the test coverage.
2 parents 0bcbe38 + 9d6235c commit 594cbdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/scheduler/framework/plugins/helper/normalize_score_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ func TestDefaultNormalizeScore(t *testing.T) {
5555
scores: []int64{1000, 1, 1, 1},
5656
expectedScores: []int64{100, 0, 0, 0},
5757
},
58+
{
59+
reverse: true,
60+
scores: []int64{0, 1, 1, 1},
61+
expectedScores: []int64{100, 0, 0, 0},
62+
},
5863
}
5964

6065
for i, test := range tests {

0 commit comments

Comments
 (0)