mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add new unit tests on TrendS
This commit is contained in:
committed by
Dan Christian Bogos
parent
2b8a8676b6
commit
4bf49be2be
@@ -96,3 +96,16 @@ func TestTrendServiceIsRunning(t *testing.T) {
|
||||
t.Errorf("Expected IsRunning to return false, got %v", result)
|
||||
}
|
||||
}
|
||||
|
||||
func TestTrendServiceStartAlreadyRunning(t *testing.T) {
|
||||
|
||||
trendService := &TrendService{}
|
||||
|
||||
trendService.trs = &engine.TrendS{}
|
||||
|
||||
err := trendService.Start()
|
||||
|
||||
if err != utils.ErrServiceAlreadyRunning {
|
||||
t.Errorf("Expected error '%v', got '%v'", utils.ErrServiceAlreadyRunning, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user