From 49bf8abc536a9babd8d8e5bef379301b1dbd9a1b Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Fri, 14 Jul 2023 11:41:48 -0400 Subject: [PATCH] Fix a couple more go vet errors --- engine/safevent_test.go | 2 +- migrator/thresholds_test.go | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) 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,