Fix TestScorePlugin: numScore should be accessed with atomic.LoadInt32

This commit is contained in:
Shingo Omura 2020-08-04 22:46:22 +09:00
parent ef1fab7642
commit d0421fa9c3
No known key found for this signature in database
GPG Key ID: C4B9C73F26C783AF

View File

@ -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.")
}