Skip to content

Commit

Permalink
Fix TestScorePlugin: numScore should be accessed with atomic.LoadInt32
Browse files Browse the repository at this point in the history
  • Loading branch information
everpeace committed Aug 4, 2020
1 parent ef1fab7 commit d0421fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/scheduler/framework_test.go
Expand Up @@ -797,7 +797,7 @@ func TestScorePlugin(t *testing.T) {
}
}

if scorePlugin.numScoreCalled == 0 {
if numScoreCalled := atomic.LoadInt32(&scorePlugin.numScoreCalled); numScoreCalled == 0 {
t.Errorf("Expected the score plugin to be called.")
}

Expand Down

0 comments on commit d0421fa

Please sign in to comment.