From a33acd2ba6b739b7be0b263359d540c8eadf6c76 Mon Sep 17 00:00:00 2001 From: "Jose A. Rivera" Date: Thu, 14 Feb 2019 11:23:40 -0600 Subject: [PATCH] CSIDriverRegistry e2e: Use framework.Poll when waiting for PVC delete Signed-off-by: Jose A. Rivera --- test/e2e/storage/csi_volumes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/storage/csi_volumes.go b/test/e2e/storage/csi_volumes.go index fea0a31ae48..2ab9ca97026 100644 --- a/test/e2e/storage/csi_volumes.go +++ b/test/e2e/storage/csi_volumes.go @@ -515,7 +515,7 @@ func deleteVolume(cs clientset.Interface, claim *v1.PersistentVolumeClaim) { claim, err := cs.CoreV1().PersistentVolumeClaims(claim.Namespace).Get(claim.Name, metav1.GetOptions{}) if err == nil { cs.CoreV1().PersistentVolumeClaims(claim.Namespace).Delete(claim.Name, nil) - framework.WaitForPersistentVolumeDeleted(cs, claim.Spec.VolumeName, 2*time.Second, 2*time.Minute) + framework.WaitForPersistentVolumeDeleted(cs, claim.Spec.VolumeName, framework.Poll, 2*time.Minute) } }