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.