diff --git a/bootstrap/internal/controllers/suite_test.go b/bootstrap/internal/controllers/suite_test.go index e5d7479..e5a6f1e 100644 --- a/bootstrap/internal/controllers/suite_test.go +++ b/bootstrap/internal/controllers/suite_test.go @@ -55,7 +55,7 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")}, ErrorIfCRDPathMissing: true, } diff --git a/controlplane/internal/controllers/suite_test.go b/controlplane/internal/controllers/suite_test.go index d28a481..38f8de0 100644 --- a/controlplane/internal/controllers/suite_test.go +++ b/controlplane/internal/controllers/suite_test.go @@ -55,7 +55,7 @@ var _ = BeforeSuite(func() { By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")}, ErrorIfCRDPathMissing: true, }