Merge pull request #73900 from cofyc/fix-local-test

Wait for first pod to termiante in PV test
This commit is contained in:
Kubernetes Prow Robot
2019-02-12 20:01:57 -08:00
committed by GitHub

View File

@@ -537,6 +537,8 @@ func InjectHtml(client clientset.Interface, config VolumeTestConfig, volume v1.V
defer func() {
podClient.Delete(podName, nil)
err := waitForPodNotFoundInNamespace(client, podName, injectPod.Namespace, PodDeleteTimeout)
Expect(err).NotTo(HaveOccurred())
}()
injectPod, err := podClient.Create(injectPod)