Merge pull request #96310 from tsmetana/fix-recycler-test

PV e2e: fix race in NFS recycling test
This commit is contained in:
Kubernetes Prow Robot 2020-11-09 05:52:26 -08:00 committed by GitHub
commit d2fd467123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,6 +307,11 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
framework.ExpectNoError(e2epod.DeletePodWithWait(c, pod))
framework.Logf("Pod exited without failure; the volume has been recycled.")
// Delete the PVC and wait for the recycler to finish before the NFS server gets shutdown during cleanup.
framework.Logf("Removing second PVC, waiting for the recycler to finish before cleanup.")
framework.ExpectNoError(e2epv.DeletePVCandValidatePV(c, ns, pvc, pv, v1.VolumeAvailable))
pvc = nil
})
})
})