Avoid using negative words in PreFilter and PreScore tests.

This commit is contained in:
tangwz
2023-03-12 15:06:26 +08:00
parent ead7d66ee1
commit 3766e060e5
3 changed files with 64 additions and 29 deletions

View File

@@ -839,7 +839,7 @@ func TestFitScore(t *testing.T) {
var gotPriorities framework.NodeScoreList
for _, n := range test.nodes {
if !test.runPreScore {
if test.runPreScore {
status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.requestedPod, test.nodes)
if !status.IsSuccess() {
t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status)