mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #44760 from tsmetana/issue44757
Fix issue #44757: Flaky Test_AttachDetachControllerRecovery
This commit is contained in:
commit
a0418d01ac
@ -168,6 +168,12 @@ func attachDetachRecoveryTestCase(t *testing.T, extraPods1 []*v1.Pod, extraPods2
|
|||||||
|
|
||||||
informerFactory.Start(stopCh)
|
informerFactory.Start(stopCh)
|
||||||
|
|
||||||
|
if !controller.WaitForCacheSync("attach detach", stopCh,
|
||||||
|
informerFactory.Core().V1().Pods().Informer().HasSynced,
|
||||||
|
informerFactory.Core().V1().Nodes().Informer().HasSynced) {
|
||||||
|
t.Fatalf("Error waiting for the informer caches to sync")
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure the nodes and pods are in the inforer cache
|
// Make sure the nodes and pods are in the inforer cache
|
||||||
i = 0
|
i = 0
|
||||||
nodeList, err := informerFactory.Core().V1().Nodes().Lister().List(labels.Everything())
|
nodeList, err := informerFactory.Core().V1().Nodes().Lister().List(labels.Everything())
|
||||||
|
Loading…
Reference in New Issue
Block a user