mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
Fix failing test
This commit is contained in:
committed by
Dan Christian Bogos
parent
0170984234
commit
4010b3f6ba
@@ -42,11 +42,17 @@ func (ccM *ccMock) Call(serviceMethod string, args interface{}, reply interface{
|
||||
}
|
||||
|
||||
func TestFiltersSetFilterReloadCache(t *testing.T) {
|
||||
tmp := engine.Cache
|
||||
defer func() {
|
||||
engine.Cache = tmp
|
||||
}()
|
||||
|
||||
cfg := config.NewDefaultCGRConfig()
|
||||
cfg.GeneralCfg().DefaultCaching = utils.MetaNone
|
||||
cfg.ApierCfg().CachesConns = []string{utils.ConcatenatedKey(utils.MetaInternal, utils.MetaCaches)}
|
||||
dataDB := engine.NewInternalDB(nil, nil, true)
|
||||
dm := engine.NewDataManager(dataDB, cfg.CacheCfg(), nil)
|
||||
engine.Cache = engine.NewCacheS(cfg, dm, nil)
|
||||
expArgs := &utils.AttrReloadCacheWithAPIOpts{
|
||||
APIOpts: map[string]interface{}{
|
||||
utils.CacheOpt: utils.MetaReload,
|
||||
|
||||
Reference in New Issue
Block a user