Skip to content

Commit

Permalink
avoid handler name in suite_test
Browse files Browse the repository at this point in the history
  • Loading branch information
c-pius committed Jan 20, 2025
1 parent fdc0922 commit 656d3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/controller/kcp/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var _ = BeforeSuite(func() {
testSkrContextFactory = testskrcontext.NewDualClusterFactory(kcpClient.Scheme(), testEventRec)
descriptorProvider = provider.NewCachedDescriptorProvider()
crdCache = crd.NewCache(nil)
maintenanceWindowHandler, _ := maintenancewindows.InitializeMaintenanceWindow(logr, "/not-required", "not-required")
maintenanceWindow, _ := maintenancewindows.InitializeMaintenanceWindow(logr, "/not-required", "not-required")
err = (&kyma.Reconciler{
Client: kcpClient,
SkrContextFactory: testSkrContextFactory,
Expand All @@ -156,7 +156,7 @@ var _ = BeforeSuite(func() {
IsManagedKyma: true,
Metrics: metrics.NewKymaMetrics(metrics.NewSharedMetrics()),
RemoteCatalog: remote.NewRemoteCatalogFromKyma(kcpClient, testSkrContextFactory, flags.DefaultRemoteSyncNamespace),
TemplateLookup: templatelookup.NewTemplateLookup(kcpClient, descriptorProvider, maintenanceWindowHandler),
TemplateLookup: templatelookup.NewTemplateLookup(kcpClient, descriptorProvider, maintenanceWindow),
}).SetupWithManager(mgr, ctrlruntime.Options{},
kyma.SetupOptions{ListenerAddr: UseRandomPort})
Expect(err).ToNot(HaveOccurred())
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/controller/kyma/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var _ = BeforeSuite(func() {
kcpClient = mgr.GetClient()
testEventRec := event.NewRecorderWrapper(mgr.GetEventRecorderFor(shared.OperatorName))
testSkrContextFactory := testskrcontext.NewSingleClusterFactory(kcpClient, mgr.GetConfig(), testEventRec)
maintenanceWindowHandler, _ := maintenancewindows.InitializeMaintenanceWindow(logr, "/not-required", "/not-required")
maintenanceWindow, _ := maintenancewindows.InitializeMaintenanceWindow(logr, "/not-required", "/not-required")
err = (&kyma.Reconciler{
Client: kcpClient,
Event: testEventRec,
Expand All @@ -148,7 +148,7 @@ var _ = BeforeSuite(func() {
InKCPMode: false,
RemoteSyncNamespace: flags.DefaultRemoteSyncNamespace,
Metrics: metrics.NewKymaMetrics(metrics.NewSharedMetrics()),
TemplateLookup: templatelookup.NewTemplateLookup(kcpClient, descriptorProvider, maintenanceWindowHandler),
TemplateLookup: templatelookup.NewTemplateLookup(kcpClient, descriptorProvider, maintenanceWindow),
}).SetupWithManager(mgr, ctrlruntime.Options{
RateLimiter: internal.RateLimiter(
1*time.Second, 5*time.Second,
Expand Down

0 comments on commit 656d3fd

Please sign in to comment.