Rework pod waiting mechanism in e2e tests to accept pod and watch based
on its ResourceVersion to make sure we catch all the events.
This commit is contained in:
@@ -152,7 +152,8 @@ var _ = framework.KubeDescribe("EmptyDir wrapper volumes", func() {
|
||||
},
|
||||
}
|
||||
|
||||
if pod, err = f.Client.Pods(f.Namespace.Name).Create(pod); err != nil {
|
||||
pod, err = f.Client.Pods(f.Namespace.Name).Create(pod)
|
||||
if err != nil {
|
||||
framework.Failf("unable to create pod %v: %v", pod.Name, err)
|
||||
}
|
||||
|
||||
@@ -175,6 +176,6 @@ var _ = framework.KubeDescribe("EmptyDir wrapper volumes", func() {
|
||||
}
|
||||
}()
|
||||
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, pod.Name, f.Namespace.Name))
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, pod))
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user