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

@@ -390,7 +390,7 @@ func TestNodeResourcesBalancedAllocation(t *testing.T) {
p, _ := NewBalancedAllocation(&test.args, fh, feature.Features{})
state := framework.NewCycleState()
for i := range test.nodes {
if !test.runPreScore {
if test.runPreScore {
status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.pod, test.nodes)
if !status.IsSuccess() {
t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status)