From d5060de93f4cf2bec28bd30393fdf4cff6ca06e9 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Mon, 11 Dec 2023 17:25:49 +0800 Subject: [PATCH] use e2e f.Timeouts.PodDelete instead of 1 minute --- test/e2e/common/node/pods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/common/node/pods.go b/test/e2e/common/node/pods.go index c9d33906fc9..69037c6e65f 100644 --- a/test/e2e/common/node/pods.go +++ b/test/e2e/common/node/pods.go @@ -1042,7 +1042,7 @@ var _ = SIGDescribe("Pods", func() { framework.ExpectNoError(err, "failed to delete Pod by collection") 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() _, err = watchtools.Until(ctxUntil, preDeleteResourceVersion, w, func(event watch.Event) (bool, error) { switch event.Type {