Implement start/stop/status methods for servmanager + tests

This commit is contained in:
ionutboangiu
2022-10-19 18:59:34 +03:00
committed by Dan Christian Bogos
parent ad7bd111d1
commit 60a4da69e0
35 changed files with 495 additions and 37 deletions

View File

@@ -43,7 +43,7 @@ func TestRateSReload(t *testing.T) {
filterSChan <- nil
shdWg := new(sync.WaitGroup)
server := cores.NewServer(nil)
srvMngr := servmanager.NewServiceManager(shdWg, nil, cfg.GetReloadChan())
srvMngr := servmanager.NewServiceManager(shdWg, nil, cfg)
srvDep := map[string]*sync.WaitGroup{utils.DataDB: new(sync.WaitGroup)}
db := NewDataDBService(cfg, nil, srvDep)
chS := engine.NewCacheS(cfg, nil, nil, nil)