diff --git a/test/integration/scheduler/framework_test.go b/test/integration/scheduler/framework_test.go index c3613f2581a..fa9da2c7e4a 100644 --- a/test/integration/scheduler/framework_test.go +++ b/test/integration/scheduler/framework_test.go @@ -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.") }