Merge pull request #122259 from pacoxu/enlarge-pod-delete-timeout

use e2e f.Timeouts.PodDelete instead of 1 minute
This commit is contained in:
Kubernetes Prow Robot 2024-03-05 05:46:29 -08:00 committed by GitHub
commit a33f8b8211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1042,7 +1042,7 @@ var _ = SIGDescribe("Pods", func() {
framework.ExpectNoError(err, "failed to delete Pod by collection") framework.ExpectNoError(err, "failed to delete Pod by collection")
ginkgo.By("watching for the Pod to be deleted") ginkgo.By("watching for the Pod to be deleted")
ctxUntil, cancel = context.WithTimeout(ctx, 1*time.Minute) ctxUntil, cancel = context.WithTimeout(ctx, f.Timeouts.PodDelete)
defer cancel() defer cancel()
_, err = watchtools.Until(ctxUntil, preDeleteResourceVersion, w, func(event watch.Event) (bool, error) { _, err = watchtools.Until(ctxUntil, preDeleteResourceVersion, w, func(event watch.Event) (bool, error) {
switch event.Type { switch event.Type {