diff --git a/internal/api/ai_intelligence_handlers_test.go b/internal/api/ai_intelligence_handlers_test.go index bc80050ad..55e82dfba 100644 --- a/internal/api/ai_intelligence_handlers_test.go +++ b/internal/api/ai_intelligence_handlers_test.go @@ -8,17 +8,17 @@ import ( "testing" "time" - "github.com/rcourtman/pulse-go-rewrite/internal/config" + "github.com/rcourtman/pulse-go-rewrite/internal/ai" "github.com/rcourtman/pulse-go-rewrite/internal/unifiedresources" ) // createTestAIHandler creates a test AI handler with minimal setup func createTestAIHandler(t *testing.T) *AISettingsHandler { t.Helper() - tmp := t.TempDir() - cfg := &config.Config{DataPath: tmp} - persistence := config.NewConfigPersistence(tmp) - return newTestAISettingsHandler(cfg, persistence, nil) + return &AISettingsHandler{ + defaultAIService: ai.NewService(nil, nil), + aiServices: make(map[string]*ai.Service), + } } // TestHandleGetPatterns tests the patterns endpoint