Skip to content

Commit

Permalink
Enable feature gate in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
  • Loading branch information
rashmigottipati committed Jun 21, 2023
1 parent 12d4422 commit f544b27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/controllers/core/catalog_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ var _ = Describe("Catalogd Controller Test", func() {
)
BeforeEach(func() {
ctx = context.Background()
if err := features.CatalogdFeatureGate.Set("PackagesBundleMetadataAPIs=true"); err != nil {
Expect(err).NotTo(HaveOccurred())
}
if err := features.CatalogdFeatureGate.Set("CatalogMetadataAPI=true"); err != nil {
Expect(err).NotTo(HaveOccurred())
}
mockSource = &MockSource{}
reconciler = &core.CatalogReconciler{
Client: cl,
Expand Down

0 comments on commit f544b27

Please sign in to comment.