Merge pull request #90214 from pohly/stop-pod-master

storage tests: really wait for pod to disappear
This commit is contained in:
Kubernetes Prow Robot
2020-04-16 20:49:07 -07:00
committed by GitHub

View File

@@ -693,8 +693,7 @@ func StopPod(c clientset.Interface, pod *v1.Pod) {
} else { } else {
framework.Logf("Pod %s has the following logs: %s", pod.Name, body) framework.Logf("Pod %s has the following logs: %s", pod.Name, body)
} }
e2epod.DeletePodOrFail(c, pod.Namespace, pod.Name) e2epod.DeletePodWithWait(c, pod)
e2epod.WaitForPodNoLongerRunningInNamespace(c, pod.Name, pod.Namespace)
} }
func verifyPVCsPending(client clientset.Interface, pvcs []*v1.PersistentVolumeClaim) { func verifyPVCsPending(client clientset.Interface, pvcs []*v1.PersistentVolumeClaim) {