diff --git a/test/e2e/volume_provisioning.go b/test/e2e/volume_provisioning.go index 53fdb2beb98..bdad5eeb6a9 100644 --- a/test/e2e/volume_provisioning.go +++ b/test/e2e/volume_provisioning.go @@ -110,16 +110,16 @@ var _ = framework.KubeDescribe("Dynamic provisioning", func() { // 10 minutes here. There is no way how to see if kubelet is // finished with cleaning volumes. A small sleep here actually // speeds up the test! - // One minute should be enough to clean up the pods properly. - // Detaching e.g. a Cinder volume takes some time. + // Three minutes should be enough to clean up the pods properly. + // We've seen GCE PD detach to take more than 1 minute. By("Sleeping to let kubelet destroy all pods") - time.Sleep(time.Minute) + time.Sleep(3 * time.Minute) By("deleting the claim") framework.ExpectNoError(c.PersistentVolumeClaims(ns).Delete(claim.Name)) // Wait for the PV to get deleted too. - framework.ExpectNoError(framework.WaitForPersistentVolumeDeleted(c, pv.Name, 1*time.Second, 10*time.Minute)) + framework.ExpectNoError(framework.WaitForPersistentVolumeDeleted(c, pv.Name, 5*time.Second, 20*time.Minute)) }) }) })