mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
Merge pull request #699 from TeoV/master
Add TestStats in config_test.go
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user