From 54a90fe5433439032c7983bf8dfd98d1699f5ab5 Mon Sep 17 00:00:00 2001 From: armirveliaj Date: Mon, 8 Jul 2024 10:28:52 -0400 Subject: [PATCH] Add new unit test on engine --- engine/actions_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/actions_test.go b/engine/actions_test.go index bb78df4ae..4339d39e7 100644 --- a/engine/actions_test.go +++ b/engine/actions_test.go @@ -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)) + } +}