Fixed integration test in engine and general_tests

This commit is contained in:
andronache
2021-01-08 10:19:55 +02:00
committed by Dan Christian Bogos
parent a01afde795
commit ea796ec9f9
2 changed files with 6 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ import (
"testing"
"time"
"github.com/ericlagergren/decimal"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/utils"
)
@@ -2329,7 +2331,9 @@ func testOnStorITAccountProfile(t *testing.T) {
FilterIDs: []string{"FLTR_RES_GR2"},
Weight: 10,
Type: utils.VOICE,
Units: utils.NewDecimal(3600, 0),
Units: &utils.Decimal{
new(decimal.Big).SetUint64(10),
},
Opts: map[string]interface{}{
"key1": "val1",
},

View File

@@ -152,7 +152,7 @@ func testTutSMGCacheStats(t *testing.T) {
expectedStats[utils.CacheAttributeProfiles].Items = 2
expectedStats[utils.MetaDefault].Items = 1
expectedStats[utils.CacheActionTriggers].Items = 1
expectedStats[utils.CacheLoadIDs].Items = 32
expectedStats[utils.CacheLoadIDs].Items = 33
expectedStats[utils.CacheChargerProfiles].Items = 1
expectedStats[utils.CacheRPCConnections].Items = 2
expectedStats[utils.CacheTimings].Items = 14