mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add new unit test on engine
This commit is contained in:
committed by
Dan Christian Bogos
parent
b0c64286e8
commit
54a90fe543
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user