Fix various typos in kubelet
This commit is contained in:
@@ -140,7 +140,7 @@ func TestRunOnce(t *testing.T) {
|
||||
}
|
||||
podManager.SetPods(pods)
|
||||
// The original test here is totally meaningless, because fakeruntime will always return an empty podStatus. While
|
||||
// the originial logic of isPodRunning happens to return true when podstatus is empty, so the test can always pass.
|
||||
// the original logic of isPodRunning happens to return true when podstatus is empty, so the test can always pass.
|
||||
// Now the logic in isPodRunning is changed, to let the test pass, we set the podstatus directly in fake runtime.
|
||||
// This is also a meaningless test, because the isPodRunning will also always return true after setting this. However,
|
||||
// because runonce is never used in kubernetes now, we should deprioritize the cleanup work.
|
||||
|
Reference in New Issue
Block a user