From 17fa3ae1b31b458d4e1aef5ee8b2cb4ebab9248f Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Thu, 27 Apr 2023 14:43:14 +0300 Subject: [PATCH] Update pkg/envtest/crd.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/crd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/envtest/crd.go b/pkg/envtest/crd.go index cf57c09c3f..f9c58ea26a 100644 --- a/pkg/envtest/crd.go +++ b/pkg/envtest/crd.go @@ -166,7 +166,7 @@ func WaitForCRDs(config *rest.Config, crds []*apiextensionsv1.CustomResourceDefi // Poll until all resources are found in discovery p := &poller{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.