fx build fix
This commit is contained in:
@@ -6,21 +6,6 @@ import (
|
||||
factory "github.com/tech/sendico/pkg/mlogger/factory"
|
||||
)
|
||||
|
||||
func TestNewTaskManagerInternal(t *testing.T) {
|
||||
logger := factory.NewLogger(true)
|
||||
|
||||
manager := NewTaskManager(logger, nil, nil)
|
||||
|
||||
if manager == nil {
|
||||
t.Fatal("Expected non-nil TaskManager")
|
||||
}
|
||||
|
||||
// Test that logger is properly named
|
||||
if manager.logger == nil {
|
||||
t.Error("Expected logger to be set")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewAccountManagerInternal(t *testing.T) {
|
||||
logger := factory.NewLogger(true)
|
||||
|
||||
@@ -38,19 +23,3 @@ func TestNewAccountManagerInternal(t *testing.T) {
|
||||
t.Error("Expected logger to be set")
|
||||
}
|
||||
}
|
||||
|
||||
func TestInternalConstructorsWithNilLogger(t *testing.T) {
|
||||
// Test that constructors handle nil logger gracefully
|
||||
taskManager := NewTaskManager(nil, nil, nil)
|
||||
if taskManager == nil {
|
||||
t.Fatal("Expected non-nil TaskManager even with nil logger")
|
||||
}
|
||||
|
||||
accountManager := NewAccountManager(
|
||||
nil,
|
||||
nil, nil, nil, nil,
|
||||
)
|
||||
if accountManager == nil {
|
||||
t.Fatal("Expected non-nil AccountManager even with nil logger")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user