Merge pull request #699 from TeoV/master

Add TestStats in config_test.go
This commit is contained in:
Dan Christian Bogos
2017-08-08 05:56:29 -05:00
committed by GitHub

View File

@@ -564,6 +564,16 @@ func TestCgrCfgJSONDefaultsResLimCfg(t *testing.T) {
}
func TestCgrCfgJSONDefaultStatsCfg(t *testing.T) {
eStatsCfg := &StatSCfg{
Enabled: false,
StoreInterval: 0,
}
if !reflect.DeepEqual(cgrCfg.statsCfg, eStatsCfg) {
t.Errorf("received: %+v, expecting: %+v", cgrCfg.statsCfg, eStatsCfg)
}
}
func TestCgrCfgJSONDefaultsDiameterAgentCfg(t *testing.T) {
testDA := &DiameterAgentCfg{
Enabled: false,