diff --git a/docs/book/src/reference/envtest.md b/docs/book/src/reference/envtest.md index 1f9fa55ed60..ddb5cc74dd8 100644 --- a/docs/book/src/reference/envtest.md +++ b/docs/book/src/reference/envtest.md @@ -144,7 +144,8 @@ var _ = AfterSuite(func() { @@ -191,12 +192,7 @@ Following an example. ```go BeforeEach(func() { - var err error - kbc, err = utils.NewTestContext(util.KubebuilderBinName, "GO111MODULE=on") - Expect(err).NotTo(HaveOccurred()) - Expect(kbc.Prepare()).To(Succeed()) - - By("installing the cert-manager bundle") + By("installing the cert-manager bundle") Expect(kbc.InstallCertManager(false)).To(Succeed()) By("installing the Prometheus operator")