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:
@@ -67,6 +67,6 @@ func runPod(f *framework.Framework, name, image string) *api.Pod {
|
||||
}
|
||||
createdPod, err := f.Client.Pods(f.Namespace.Name).Create(pod)
|
||||
framework.ExpectNoError(err)
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, name, f.Namespace.Name))
|
||||
framework.ExpectNoError(framework.WaitForPodRunningInNamespace(f.Client, createdPod))
|
||||
return createdPod
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user