Fix CSINodeInfo startup

To speed up unit tests and add more observability when things go wrong.
This commit is contained in:
Jan Safranek
2020-03-27 18:29:34 +01:00
parent 8205f815fb
commit 8bdbd4d683
3 changed files with 23 additions and 18 deletions

View File

@@ -1870,7 +1870,7 @@ func (f *fakeVolumeHost) WaitForCacheSync() error {
}
func (f *fakeVolumeHost) WaitForKubeletErrNil() error {
return wait.PollImmediate(100*time.Millisecond, 10*time.Second, func() (bool, error) {
return wait.PollImmediate(10*time.Millisecond, 10*time.Second, func() (bool, error) {
f.mux.Lock()
defer f.mux.Unlock()
return f.kubeletErr == nil, nil