test: fix pv deletion timeout

This commit is contained in:
andyzhangx 2024-12-22 08:39:09 +00:00
parent 80379db5d5
commit 176730b0f0
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1187,7 +1187,7 @@ func StopPodAndDependents(ctx context.Context, c clientset.Interface, timeouts *
// As with CSI inline volumes, we use the pod delete timeout here because conceptually
// the volume deletion needs to be that fast (whatever "that" is).
framework.Logf("Wait up to %v for pod PV %s to be fully deleted", timeouts.PodDelete, pv.Name)
framework.ExpectNoError(e2epv.WaitForPersistentVolumeDeleted(ctx, c, pv.Name, 5*time.Second, timeouts.PodDelete))
framework.ExpectNoError(e2epv.WaitForPersistentVolumeDeleted(ctx, c, pv.Name, 5*time.Second, timeouts.PVDeleteSlow))
}
}
}