WaitForCacheSync before running attachdetach controller

This commit is contained in:
Matthew Wong
2017-04-17 13:17:48 -04:00
parent f96b187fcb
commit e1ce33d944
3 changed files with 7 additions and 6 deletions

View File

@@ -115,6 +115,8 @@ func TestPodDeletionWithDswp(t *testing.T) {
// start controller loop
stopCh := make(chan struct{})
go informers.Core().V1().PersistentVolumeClaims().Informer().Run(stopCh)
go informers.Core().V1().PersistentVolumes().Informer().Run(stopCh)
go ctrl.Run(stopCh)
waitToObservePods(t, podInformer, 1)