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 7d09c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/core/catalog_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ var _ = Describe("Catalogd Controller Test", func() {
)
BeforeEach(func() {
ctx = context.Background()
features.CatalogdFeatureGate.Set("PackagesBundleMetadataAPIs=true")

Check failure on line 52 in pkg/controllers/core/catalog_controller_test.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `features.CatalogdFeatureGate.Set` is not checked (errcheck)
mockSource = &MockSource{}
reconciler = &core.CatalogReconciler{
Client: cl,
Expand Down

0 comments on commit 7d09c08

Please sign in to comment.