fx build fix
Some checks failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/fx/1 Pipeline failed
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/fx/2 Pipeline failed

This commit is contained in:
Stephan D
2025-11-08 00:40:01 +01:00
parent 49b86efecb
commit d367dddbbd
98 changed files with 3983 additions and 5063 deletions

View File

@@ -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")
}
}