From 47841b7f636117fdc45f4f2f039eeb55edbe82d0 Mon Sep 17 00:00:00 2001 From: Leonardo Cecchi Date: Wed, 2 Oct 2024 10:42:02 +0200 Subject: [PATCH] chore: fix unit tests Signed-off-by: Leonardo Cecchi --- internal/operator/controller/suite_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/operator/controller/suite_test.go b/internal/operator/controller/suite_test.go index 47b937c..2cbe841 100644 --- a/internal/operator/controller/suite_test.go +++ b/internal/operator/controller/suite_test.go @@ -57,11 +57,11 @@ func TestControllers(t *testing.T) { var _ = BeforeSuite(func() { logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true))) - ctx, cancel = context.WithCancel(context.TODO()) + ctx, cancel = context.WithCancel(context.TODO()) By("bootstrapping test environment") testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "crd", "bases")}, ErrorIfCRDPathMissing: true, // The BinaryAssetsDirectory is only required if you want to run the tests directly