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.