Merge pull request #109342 from bertinatto/custom-timeout-storage-e2e-cleanup

test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine
This commit is contained in:
Kubernetes Prow Robot
2022-05-04 03:45:52 -07:00
committed by GitHub

View File

@@ -207,7 +207,7 @@ func (r *VolumeResource) CleanupResource() error {
}
if pv != nil {
err = e2epv.WaitForPersistentVolumeDeleted(f.ClientSet, pv.Name, 5*time.Second, 5*time.Minute)
err = e2epv.WaitForPersistentVolumeDeleted(f.ClientSet, pv.Name, 5*time.Second, f.Timeouts.PVDelete)
if err != nil {
cleanUpErrs = append(cleanUpErrs, fmt.Errorf(
"persistent Volume %v not deleted by dynamic provisioner: %w", pv.Name, err))