mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
add error handling for cron AddFunc
This commit is contained in:
committed by
Dan Christian Bogos
parent
a4b2379e89
commit
ef4324fc0e
@@ -22,7 +22,6 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/cgrates/config"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
@@ -33,7 +32,10 @@ import (
|
||||
)
|
||||
|
||||
func TestSqlGetMetrics(t *testing.T) {
|
||||
em := utils.NewExporterMetrics("", time.Local)
|
||||
em, err := utils.NewExporterMetrics("", "Local")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
sqlEe := &SQLEe{
|
||||
em: em,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user