From 52dfb5ca7f50b3506d207a5609ca1693a0bfa23a Mon Sep 17 00:00:00 2001 From: Rashmi Gottipati Date: Wed, 21 Jun 2023 09:58:52 -0400 Subject: [PATCH] Enable feature gate in unit test Signed-off-by: Rashmi Gottipati --- pkg/controllers/core/catalog_controller_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controllers/core/catalog_controller_test.go b/pkg/controllers/core/catalog_controller_test.go index a7ca8ce8..48c82d70 100644 --- a/pkg/controllers/core/catalog_controller_test.go +++ b/pkg/controllers/core/catalog_controller_test.go @@ -49,6 +49,8 @@ var _ = Describe("Catalogd Controller Test", func() { ) BeforeEach(func() { ctx = context.Background() + Expect(features.CatalogdFeatureGate.Set("PackagesBundleMetadataAPIs=true")).NotTo(HaveOccurred()) + Expect(features.CatalogdFeatureGate.Set("CatalogMetadataAPI=true")).NotTo(HaveOccurred()) mockSource = &MockSource{} reconciler = &core.CatalogReconciler{ Client: cl,