mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated cache tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
3aaf612b03
commit
fdf510a775
@@ -1630,7 +1630,7 @@ func testApierResetDataAfterLoadFromFolder(t *testing.T) {
|
||||
expStats[utils.CacheActionPlans].Items = 7
|
||||
expStats[utils.CacheActions].Items = 5
|
||||
expStats[utils.CacheDestinations].Items = 3
|
||||
expStats[utils.CacheLoadIDs].Items = 14
|
||||
expStats[utils.CacheLoadIDs].Items = 17
|
||||
expStats[utils.CacheRPCConnections].Items = 2
|
||||
if err := rater.Call(utils.CacheSv1GetCacheStats, new(utils.AttrCacheIDsWithAPIOpts), &rcvStats); err != nil {
|
||||
t.Error("Got error on CacheSv1.GetCacheStats: ", err.Error())
|
||||
|
||||
@@ -133,7 +133,7 @@ func testCacheSAfterLoadFromFolder(t *testing.T) {
|
||||
expStats[utils.CacheActionPlans].Items = 7
|
||||
expStats[utils.CacheActions].Items = 5
|
||||
expStats[utils.CacheDestinations].Items = 3
|
||||
expStats[utils.CacheLoadIDs].Items = 14
|
||||
expStats[utils.CacheLoadIDs].Items = 17
|
||||
expStats[utils.CacheRPCConnections].Items = 2
|
||||
if err := chcRPC.Call(utils.CacheSv1GetCacheStats, &utils.AttrCacheIDsWithAPIOpts{}, &rcvStats); err != nil {
|
||||
t.Error("Got error on CacheSv1.GetCacheStats: ", err.Error())
|
||||
|
||||
@@ -100,7 +100,7 @@ func testDspChcLoadAfterFolder(t *testing.T) {
|
||||
expStats[utils.CacheActionPlans].Items = 1
|
||||
expStats[utils.CacheActions].Items = 1
|
||||
expStats[utils.CacheDestinations].Items = 4
|
||||
expStats[utils.CacheLoadIDs].Items = 14
|
||||
expStats[utils.CacheLoadIDs].Items = 17
|
||||
expStats[utils.CacheRPCConnections].Items = 2
|
||||
args := utils.AttrCacheIDsWithAPIOpts{
|
||||
APIOpts: map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user