Skip to content

Commit

Permalink
test: fix pv deletion timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored and k8s-infra-cherrypick-robot committed Jan 5, 2025
1 parent 7a68298 commit fb58508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/testsuites/testsuites.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (t *TestPersistentVolumeClaim) Cleanup(ctx context.Context) {
// in a couple of minutes.
if t.persistentVolume.Spec.PersistentVolumeReclaimPolicy == v1.PersistentVolumeReclaimDelete {
ginkgo.By(fmt.Sprintf("waiting for claim's PV %q to be deleted", t.persistentVolume.Name))
err := e2epv.WaitForPersistentVolumeDeleted(ctx, t.client, t.persistentVolume.Name, 5*time.Second, 10*time.Minute)
err := e2epv.WaitForPersistentVolumeDeleted(ctx, t.client, t.persistentVolume.Name, 5*time.Second, 20*time.Minute)
framework.ExpectNoError(err)
}
// Wait for the PVC to be deleted
Expand All @@ -389,7 +389,7 @@ func (t *TestPersistentVolumeClaim) DeleteBoundPersistentVolume(ctx context.Cont
err := e2epv.DeletePersistentVolume(ctx, t.client, t.persistentVolume.Name)
framework.ExpectNoError(err)
ginkgo.By(fmt.Sprintf("waiting for claim's PV %q to be deleted", t.persistentVolume.Name))
err = e2epv.WaitForPersistentVolumeDeleted(ctx, t.client, t.persistentVolume.Name, 5*time.Second, 10*time.Minute)
err = e2epv.WaitForPersistentVolumeDeleted(ctx, t.client, t.persistentVolume.Name, 5*time.Second, 20*time.Minute)
framework.ExpectNoError(err)
}

Expand Down

0 comments on commit fb58508

Please sign in to comment.