diff --git a/cmd/broker/bindings_envtest_test.go b/cmd/broker/bindings_envtest_test.go deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/internal/broker/bind_create_test.go b/internal/broker/bind_create_test.go index 536d0cc9e5..e27321b3e5 100644 --- a/internal/broker/bind_create_test.go +++ b/internal/broker/bind_create_test.go @@ -571,11 +571,6 @@ func prepareBindingEndpoint(t *testing.T, cfg BindingConfig) (*BindEndpoint, sto Level: slog.LevelDebug, })) - logs := logrus.New() - logs.SetLevel(logrus.DebugLevel) - logs.SetFormatter(&logrus.JSONFormatter{ - TimestampFormat: time.RFC3339Nano, - }) err := db.Instances().Insert(fixture.FixInstance(instanceID1)) require.NoError(t, err) @@ -583,5 +578,5 @@ func prepareBindingEndpoint(t *testing.T, cfg BindingConfig) (*BindEndpoint, sto err = db.Operations().InsertOperation(operation) require.NoError(t, err) - return NewBind(cfg, db, logs, k8sClientProvider, k8sClientProvider, event.NewPubSub(log)), db + return NewBind(cfg, db, log, k8sClientProvider, k8sClientProvider, event.NewPubSub(log)), db } diff --git a/internal/broker/bind_envtest_test.go b/internal/broker/bind_envtest_test.go index 1ea3ba3f01..fd040f1dce 100644 --- a/internal/broker/bind_envtest_test.go +++ b/internal/broker/bind_envtest_test.go @@ -110,8 +110,8 @@ func TestCreateBinding(t *testing.T) { Level: slog.LevelDebug, })) publisher := event.NewPubSub(log) - svc := NewBind(bindingCfg, db, logs, skrK8sClientProvider, skrK8sClientProvider, publisher) - unbindSvc := NewUnbind(logs, db, brokerBindings.NewServiceAccountBindingsManager(skrK8sClientProvider, skrK8sClientProvider), publisher) + svc := NewBind(bindingCfg, db, log, skrK8sClientProvider, skrK8sClientProvider, publisher) + unbindSvc := NewUnbind(log, db, brokerBindings.NewServiceAccountBindingsManager(skrK8sClientProvider, skrK8sClientProvider), publisher) t.Run("should create a new service binding without error", func(t *testing.T) { // When