Fix a couple more go vet errors

This commit is contained in:
ionutboangiu
2023-07-14 11:41:48 -04:00
committed by Dan Christian Bogos
parent a9e0b9b67d
commit 49bf8abc53
2 changed files with 10 additions and 7 deletions

View File

@@ -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()

View File

@@ -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,