added integration tests for trend event to thresholds,EEs && fixes

This commit is contained in:
gezimbll
2024-10-09 17:38:49 +02:00
committed by Dan Christian Bogos
parent 0a89b131be
commit 69f4f08770
10 changed files with 511 additions and 45 deletions

View File

@@ -100,6 +100,9 @@ func (trs *TrendService) Start() error {
// Reload handles the change of config
func (tr *TrendService) Reload() (err error) {
tr.Lock()
tr.trs.Reload()
tr.Unlock()
return
}

View File

@@ -29,13 +29,6 @@ import (
"github.com/cgrates/cgrates/utils"
)
func TestTrendServiceReload(t *testing.T) {
trendService := &TrendService{}
if err := trendService.Reload(); err != nil {
t.Errorf("Reload() expected no error, got %v", err)
}
}
func TestNewTrendService(t *testing.T) {
cfg := &config.CGRConfig{}