mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
added integration tests for trend event to thresholds,EEs && fixes
This commit is contained in:
committed by
Dan Christian Bogos
parent
0a89b131be
commit
69f4f08770
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user