Revise tests failing due to configuration changes

This commit is contained in:
ionutboangiu
2024-03-14 09:20:17 -04:00
committed by Dan Christian Bogos
parent cff5d22913
commit b3d0b8ffbe
3 changed files with 8 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package general_tests
import (
"fmt"
"testing"
"github.com/cgrates/birpc/context"
@@ -117,9 +116,6 @@ func TestEscapeCharacters(t *testing.T) {
if rplyEv.MatchedProfiles[0] != "cgrates.org:ATTR_ESCAPE" ||
rplyEv.Event["Password"] != "processed" ||
rplyEv.AlteredFields[0] != "*req.Password" {
fmt.Println(rplyEv.MatchedProfiles[0] != "ATTR_ESCAPE")
fmt.Println(rplyEv.Event["Password"] != "processed")
fmt.Println(rplyEv.AlteredFields[0] != "*req.Password")
t.Error("unexpected reply:", utils.ToJSON(rplyEv))
}

View File

@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package general_tests
import (
"fmt"
"path"
"reflect"
"sort"
@@ -1402,7 +1401,6 @@ cgrates.org,ATTR_ARITH,,,,,*req.MultiplyBetweenVariables,*multiply,~*req.Elem1;~
} else {
sort.Strings(expected.AlteredFields)
sort.Strings(reply.AlteredFields)
fmt.Printf("type %T\n", reply.Event["MultiplyBetweenVariables"])
if !reflect.DeepEqual(expected, reply) {
t.Errorf("\nexpected: %s, \nreceived: %s",
utils.ToJSON(expected), utils.ToJSON(reply))