mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Fix TestScorePlugin: numScore should be accessed with atomic.LoadInt32
This commit is contained in:
@@ -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.")
|
t.Errorf("Expected the score plugin to be called.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user