Fix testPodFailSubpathError to make only WaitTimeoutForPodEvent wait

This commit is contained in:
Masaki Kimura 2018-11-26 17:29:25 +00:00
parent f81abad51c
commit 790de995f3

View File

@ -587,8 +587,6 @@ func testPodFailSubpathError(f *framework.Framework, pod *v1.Pod, errorMsg strin
defer func() { defer func() {
framework.DeletePodWithWait(f, f.ClientSet, pod) framework.DeletePodWithWait(f, f.ClientSet, pod)
}() }()
err = framework.WaitForPodRunningInNamespace(f.ClientSet, pod)
Expect(err).To(HaveOccurred(), "while waiting for pod to be running")
By("Checking for subpath error event") By("Checking for subpath error event")
selector := fields.Set{ selector := fields.Set{