mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
fixed more local tests
This commit is contained in:
@@ -308,6 +308,7 @@ func TestLoadIndividualProfiles(t *testing.T) {
|
||||
for aaId := range aas {
|
||||
aa, _ := utils.NewTPAccountActionsFromKeyId(utils.TEST_SQL, loadId, aaId)
|
||||
maa := APItoModelAccountAction(aa)
|
||||
|
||||
if err := loader.LoadAccountActionsFiltered(maa); err != nil {
|
||||
t.Fatalf("Could not load account actions with id: %s, error: %s", aaId, err.Error())
|
||||
}
|
||||
|
||||
@@ -98,10 +98,9 @@ func (rs *RedisStorage) CachePrefixValues(prefixes map[string][]string) error {
|
||||
utils.RATING_PROFILE_PREFIX: []string{},
|
||||
utils.RP_ALIAS_PREFIX: []string{},
|
||||
utils.LCR_PREFIX: []string{},
|
||||
utils.DERIVEDCHARGERS_PREFIX: []string{},
|
||||
utils.ACTION_PREFIX: []string{},
|
||||
utils.SHARED_GROUP_PREFIX: []string{},
|
||||
utils.ACC_ALIAS_PREFIX: []string{},
|
||||
utils.DERIVEDCHARGERS_PREFIX: []string{}, utils.ACTION_PREFIX: []string{},
|
||||
utils.SHARED_GROUP_PREFIX: []string{},
|
||||
utils.ACC_ALIAS_PREFIX: []string{},
|
||||
}
|
||||
for prefix, ids := range prefixes {
|
||||
if _, found := pm[prefix]; !found {
|
||||
|
||||
@@ -814,7 +814,7 @@ func (tpr *TpReader) LoadAccountActionsFiltered(qriedAA *TpAccountAction) error
|
||||
acts[tag] = enacts
|
||||
}
|
||||
}
|
||||
// writee actions
|
||||
// write actions
|
||||
for k, as := range acts {
|
||||
err = tpr.ratingStorage.SetActions(k, as)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user