Correct remote tests with correct database for redis

This commit is contained in:
TeoV
2019-11-07 07:37:26 -05:00
committed by Dan Christian Bogos
parent cc0855ce83
commit d2fd2e19db
3 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ func TestInternalRemoteITRedis(t *testing.T) {
cfg, _ := config.NewDefaultCGRConfig()
dataDB, err := engine.NewRedisStorage(
fmt.Sprintf("%s:%s", cfg.DataDbCfg().DataDbHost, cfg.DataDbCfg().DataDbPort),
4, cfg.DataDbCfg().DataDbPass, cfg.GeneralCfg().DBDataEncoding,
10, cfg.DataDbCfg().DataDbPass, cfg.GeneralCfg().DBDataEncoding,
utils.REDIS_MAX_CONNS, "")
if err != nil {
t.Fatal("Could not connect to Redis", err.Error())
@@ -202,7 +202,7 @@ func testInternalRemoteITGetAttribute(t *testing.T) {
}
reply.Compile()
if !reflect.DeepEqual(alsPrf.AttributeProfile, reply) {
t.Errorf("Expecting : %+v, received: %+v", alsPrf.AttributeProfile, reply)
t.Errorf("Expecting : %+v, received: %+v", utils.ToJSON(alsPrf.AttributeProfile), utils.ToJSON(reply))
}
}

View File

@@ -198,7 +198,7 @@ func testSchedVeifyAccount1001(t *testing.T) {
}
func testSchedVeifyAccount1002and1003(t *testing.T) {
if schedConfDIR == "tutmysql" || schedConfDIR == "filtered_scheduler1" {
if schedConfDIR == "tutmysql" || schedConfDIR == "filtered_scheduler" {
t.SkipNow()
}
var acnt *engine.Account

View File

@@ -21,7 +21,7 @@
"db_type": "*internal",
"remote_conns": [
{
"db_type": "redis",
"db_type": "*redis",
"db_port": 6379,
"db_name": "10",
}