From 9eaa32bfc71420e859188d025308f2af8d2a8032 Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Thu, 27 Apr 2023 14:42:42 +0300 Subject: [PATCH] Update pkg/envtest/webhook.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stefan Büringer <4662360+sbueringer@users.noreply.github.com> --- pkg/envtest/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/envtest/webhook.go b/pkg/envtest/webhook.go index 1e3be6b8f1..f7e43a1480 100644 --- a/pkg/envtest/webhook.go +++ b/pkg/envtest/webhook.go @@ -215,7 +215,7 @@ func WaitForWebhooks(config *rest.Config, // Poll until all resources are found in discovery p := &webhookPoller{config: config, waitingFor: waitingFor} - return wait.PollUntilContextTimeout(context.Background(), options.PollInterval, options.MaxTime, true, p.poll) + return wait.PollUntilContextTimeout(context.TODO(), options.PollInterval, options.MaxTime, true, p.poll) } // poller checks if all the resources have been found in discovery, and returns false if not.