diff --git a/test/e2e/framework/volume_util.go b/test/e2e/framework/volume_util.go index 3687c22960f..b87377ea70c 100644 --- a/test/e2e/framework/volume_util.go +++ b/test/e2e/framework/volume_util.go @@ -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)