mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Fix TestScorePlugin: numScore should be accessed with atomic.LoadInt32
This commit is contained in:
parent
ef1fab7642
commit
d0421fa9c3
@ -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.")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user