diff --git a/engine/safevent_test.go b/engine/safevent_test.go index 6dae54485..cc5f6c463 100644 --- a/engine/safevent_test.go +++ b/engine/safevent_test.go @@ -129,7 +129,7 @@ func TestSafEventString(t *testing.T) { for i := 0; i < 10; i++ { t.Run("string", func(t *testing.T) { t.Parallel() - se.String() + _ = se.String() }) t.Run("remove", func(t *testing.T) { t.Parallel() diff --git a/migrator/thresholds_test.go b/migrator/thresholds_test.go index 2542a64f4..63a0fa297 100644 --- a/migrator/thresholds_test.go +++ b/migrator/thresholds_test.go @@ -62,12 +62,15 @@ func TestV2ActionTriggerAsThreshold(t *testing.T) { Rules: filters} thp := &engine.ThresholdProfile{ - ID: v2ATR.ID, - Tenant: config.CgrConfig().GeneralCfg().DefaultTenant, - Blocker: false, - Weight: v2ATR.Weight, - ActivationInterval: &utils.ActivationInterval{v2ATR.ExpirationDate, v2ATR.ActivationDate}, - MinSleep: v2ATR.MinSleep, + ID: v2ATR.ID, + Tenant: config.CgrConfig().GeneralCfg().DefaultTenant, + Blocker: false, + Weight: v2ATR.Weight, + ActivationInterval: &utils.ActivationInterval{ + ExpiryTime: v2ATR.ExpirationDate, + ActivationTime: v2ATR.ActivationDate, + }, + MinSleep: v2ATR.MinSleep, } th := &engine.Threshold{ Tenant: config.CgrConfig().GeneralCfg().DefaultTenant,