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

Wait for first pod to termiante in PV test
pull/564/head
Kubernetes Prow Robot 2019-02-12 20:01:57 -08:00 committed by GitHub
commit 5442980dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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