test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine

This commit is contained in:
Fabio Bertinatto 2022-04-06 14:25:40 -03:00
parent 820247a3ae
commit 5ccef5c25e

View File

@ -204,7 +204,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))