mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine
This commit is contained in:
parent
820247a3ae
commit
5ccef5c25e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user