mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
Updating tests with SessionSCfg() function
This commit is contained in:
@@ -463,8 +463,9 @@ func TestCgrCfgJSONDefaultsSMGenericCfg(t *testing.T) {
|
||||
SessionTTL: 0 * time.Second,
|
||||
SessionIndexes: utils.StringMap{},
|
||||
}
|
||||
if !reflect.DeepEqual(cgrCfg.SessionSCfg, eSessionSCfg) {
|
||||
t.Errorf("received: %+v, expecting: %+v", cgrCfg.SessionSCfg, eSessionSCfg)
|
||||
if !reflect.DeepEqual(eSessionSCfg, cgrCfg.sessionSCfg) {
|
||||
t.Errorf("expecting: %s, received: %s",
|
||||
utils.ToJSON(eSessionSCfg), utils.ToJSON(cgrCfg.sessionSCfg))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ var smgCfg *config.CGRConfig
|
||||
|
||||
func init() {
|
||||
smgCfg, _ = config.NewDefaultCGRConfig()
|
||||
smgCfg.SMGConfig.SessionIndexes = utils.StringMap{"Tenant": true,
|
||||
smgCfg.SessionSCfg().SessionIndexes = utils.StringMap{"Tenant": true,
|
||||
"Account": true, "Extra3": true, "Extra4": true}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user