add error handling for cron AddFunc

This commit is contained in:
ionutboangiu
2025-03-18 17:13:32 +02:00
committed by Dan Christian Bogos
parent a4b2379e89
commit ef4324fc0e
15 changed files with 131 additions and 47 deletions

View File

@@ -677,7 +677,10 @@ func TestCsvInitFileCSV(t *testing.T) {
if err := os.MkdirAll("/tmp/TestInitFileCSV", 0666); err != nil {
t.Error(err)
}
em := utils.NewExporterMetrics("", time.Local)
em, err := utils.NewExporterMetrics("", "Local")
if err != nil {
t.Fatal(err)
}
fCsv := &FileCSVee{
cgrCfg: cgrCfg,
cfg: cgrCfg.EEsCfg().Exporters[0],