mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix issue #44757: Flaky Test_AttachDetachControllerRecovery
This commit is contained in:
parent
d3b3c31147
commit
3064fe4d39
@ -168,6 +168,12 @@ func attachDetachRecoveryTestCase(t *testing.T, extraPods1 []*v1.Pod, extraPods2
|
||||
|
||||
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
|
||||
i = 0
|
||||
nodeList, err := informerFactory.Core().V1().Nodes().Lister().List(labels.Everything())
|
||||
|
Loading…
Reference in New Issue
Block a user