Add new unit test on engine

This commit is contained in:
armirveliaj
2024-07-08 10:28:52 -04:00
committed by Dan Christian Bogos
parent b0c64286e8
commit 54a90fe543

View File

@@ -4900,3 +4900,11 @@ func TestActionsClone(t *testing.T) {
t.Errorf("Expected cloned result to be nil when apl is nil, got %+v", cloned)
}
}
func TestActionsNewActionConnCfgThresholdSNonSessionAction(t *testing.T) {
Config := &config.CGRConfig{}
act := newActionConnCfg(utils.ThresholdS, "someOtherAction", Config)
if len(act.ConnIDs) != 0 {
t.Errorf("Expected ConnIDs length 0, got %d", len(act.ConnIDs))
}
}